From: Kirill Korotaev Date: Tue, 27 Jun 2006 09:54:32 +0000 (-0700) Subject: [PATCH] sched: CPU hotplug race vs. set_cpus_allowed() X-Git-Tag: v2.6.18-rc1~512 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efc30814a88bdbe2bfe4ac94de2eb089ad80bee3;p=pandora-kernel.git [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-diff-tree failed