]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commita096d169f9c7e29019598c3ae8d866a70f72c902
treebe5c7a42f26f76406da51b888d8ae8e020ba7821
parent9747542f8efa1bd781a52fcd18d213787e9eb68a
[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