]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] smp_call_function_single() check that local interrupts are enabled
authorAndrew Morton <akpm@osdl.org>
Thu, 7 Dec 2006 04:38:16 +0000 (20:38 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:39 +0000 (08:39 -0800)
commitd9d6315c816cdf7bde5d33cf6c5711cbb0090e86
tree03ad860836722b803a02a58d5e988fb9f9b883fc
parent568f0d9b1b6f179f082aa0232ce0d76460374bf0
[PATCH] smp_call_function_single() check that local interrupts are enabled

smp_call_function_single() can deadlock if the caller disabled local
interrupts (the target CPU could be spinning on call_lock).  Check for that.

Why on earth do these functions use spin_lock_bh()??

Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Cc: Andi Kleen <ak@suse.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/smp.c
arch/x86_64/kernel/smp.c