alistair23-linux/arch/powerpc
Benjamin Herrenschmidt b46b6942b3 powerpc/mm: Fix a AB->BA deadlock scenario with nohash MMU context lock
The MMU context_lock can be taken from switch_mm() while the
rq->lock is held. The rq->lock can also be taken from interrupts,
thus if we get interrupted in destroy_context() with the context
lock held and that interrupt tries to take the rq->lock, there's
a possible deadlock scenario with another CPU having the rq->lock
and calling switch_mm() which takes our context lock.

The fix is to always ensure interrupts are off when taking our
context lock. The switch_mm() path is already good so this fixes
the destroy_context() path.

While at it, turn the context lock into a new style spinlock.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-06-09 16:43:04 +10:00
..
boot powerpc/virtex: Add ml510 reference design device tree 2009-06-06 10:16:00 -06:00
configs powerpc/ps3: Update ps3_defconfig 2009-05-18 15:19:05 +10:00
include/asm powerpc: Add PTRACE_SINGLEBLOCK support 2009-06-09 13:29:25 +10:00
kernel powerpc: Add PTRACE_SINGLEBLOCK support 2009-06-09 13:29:25 +10:00
kvm KVM: ppc: e500: Fix the bug that KVM is unstable in SMP 2009-03-24 11:03:15 +02:00
lib powerpc: Move dma-noncoherent.c from arch/powerpc/lib to arch/powerpc/mm 2009-05-27 16:32:05 +10:00
math-emu powerpc/math-emu: Fix efp dependence 2009-03-11 06:00:08 -05:00
mm powerpc/mm: Fix a AB->BA deadlock scenario with nohash MMU context lock 2009-06-09 16:43:04 +10:00
oprofile powerpc/oprofile: Remove unused dump_pmcs() in FSL oprofile 2009-05-19 00:46:13 -05:00
platforms powerpc/virtex: Add Xilinx ML510 reference design support 2009-06-06 10:15:24 -06:00
sysdev powerpc/virtex: Add Xilinx ML510 reference design support 2009-06-06 10:15:24 -06:00
xmon powerpc/xmon: Add dl command to dump contents of __log_buf 2009-05-21 15:44:25 +10:00
Kconfig Merge branch 'merge' into next 2009-05-29 13:54:52 +10:00
Kconfig.debug powerpc: Keep track of emulated instructions 2009-05-21 15:44:26 +10:00
Makefile powerpc/math-emu: Fix efp dependence 2009-03-11 06:00:08 -05:00