[PATCH] move_task_off_dead_cpu() should be called with disabled ints
authorKirill Korotaev <dev@openvz.org>
Sun, 10 Dec 2006 10:20:11 +0000 (02:20 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sun, 10 Dec 2006 17:55:42 +0000 (09:55 -0800)
commit054b9108e01ef27e2e6b32b4226abb6024626f06
treebe5c7a42f26f76406da51b888d8ae8e020ba7821
parent6711cab43ed5e60bf51e3dbbce6395e87d4e9805
[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>
kernel/sched.c