From efc30814a88bdbe2bfe4ac94de2eb089ad80bee3 Mon Sep 17 00:00:00 2001 From: Kirill Korotaev Date: Tue, 27 Jun 2006 02:54:32 -0700 Subject: [PATCH] [PATCH] sched: CPU hotplug race vs. set_cpus_allowed() There is a race between set_cpus_allowed() and move_task_off_dead_cpu(). __migrate_task() doesn't report any err code, so task can be left on its runqueue if its cpus_allowed mask changed so that dest_cpu is not longer a possible target. Also, chaning cpus_allowed mask requires rq->lock being held. Signed-off-by: Kirill Korotaev Acked-By: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed