[PATCH] move_task_off_dead_cpu() should be called with disabled ints
commit56cf77091500709c99253b305708bc47196f7d21
authorKirill Korotaev <dev@openvz.org>
Sun, 10 Dec 2006 10:20:11 +0000 (10 02:20 -0800)
committerChris Wright <chrisw@sous-sol.org>
Mon, 5 Feb 2007 16:31:45 +0000 (5 08:31 -0800)
tree5414c3f2ba385a60614dcf24a90b0d21e8173e3f
parent16a2980e7a2d9afe5b6c68c783d025036edcf70e
[PATCH] move_task_off_dead_cpu() should be called with disabled ints

move_task_off_dead_cpu() requires interrupts to be disabled, while
migrate_dead() calls it with enabled interrupts.  Added appropriate
comments to functions and added BUG_ON(!irqs_disabled()) into
double_rq_lock() and double_lock_balance() which are the origin sources of
such bugs.

Signed-off-by: Kirill Korotaev <dev@openvz.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
kernel/sched.c