linux/include
James Bottomley 08dc2ca61e [PARISC] Fix our spinlock implementation
We actually have two separate bad bugs

1. The read_lock implementation spins with disabled interrupts.  This is
completely wrong
2. Our spin_lock_irqsave should check to see if interrupts were enabled
before the call and re-enable interrupts around the inner spin loop.

The problem is that if we spin with interrupts off, we can't receive
IPIs. This has resulted in a bug where SMP machines suddenly spit
smp_call_function timeout messages and hang.

The scenario I've caught is

CPU0 does a flush_tlb_all holding the vmlist_lock for write.
CPU1 tries a cat of /proc/meminfo which tries to acquire vmlist_lock for
     read
CPU1 is now spinning with interrupts disabled
CPU0 tries to execute a smp_call_function to flush the local tlb caches

This is now a deadlock because CPU1 is spinning with interrupts disabled
and can never receive the IPI

Signed-off-by: James Bottomley <jejb@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
2005-11-17 16:35:09 -05:00
..
acpi
asm-alpha [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-arm [ARM] No need to include asm/proc-fns.h into asm/system.h 2005-11-16 18:36:49 +00:00
asm-arm26 [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-cris [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-frv [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-generic Merge x86-64 update from Andi 2005-11-14 19:56:02 -08:00
asm-h8300 [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-i386 x86: Fix silly typo in recent <asm/signal.h> fixes 2005-11-17 10:04:31 -08:00
asm-ia64 [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-m32r [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
asm-m68k [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-m68knommu [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-mips [MIPS] SEAD: More build fixes. 2005-11-17 16:23:57 +00:00
asm-parisc [PARISC] Fix our spinlock implementation 2005-11-17 16:35:09 -05:00
asm-powerpc [PATCH] powerpc: Make the vDSO functions set error code (#2) 2005-11-16 14:05:11 +11:00
asm-ppc [PATCH] powerpc: replace page_to_virt() with lowmem_page_address() for Book-E 2005-11-16 13:52:12 +11:00
asm-ppc64 [PATCH] powerpc: pci_64 fixes & cleanups 2005-11-16 13:29:46 +11:00
asm-s390 [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-sh [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-sh64 [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-sparc [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-sparc64 [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-um [PATCH] uml: maintain own LDT entries 2005-11-07 07:53:31 -08:00
asm-v850 [PATCH] v850: use generic hardirq code 2005-11-15 08:59:20 -08:00
asm-x86_64 Merge x86-64 update from Andi 2005-11-14 19:56:02 -08:00
asm-xtensa [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
keys [PATCH] Keys: Export user-defined keyring operations 2005-10-30 17:37:22 -08:00
linux Add definitions for the Dallas DS1742 RTC / non-volatile memory. 2005-11-17 16:23:43 +00:00
math-emu
media [PATCH] v4l: (945) adds a new include for internal v4l2 ioctls and api 2005-11-13 18:14:19 -08:00
mtd [MTD] user-abi: Clean up trailing white spaces 2005-11-07 14:43:11 +01:00
net [TCP]: More spelling fixes. 2005-11-15 15:17:10 -08:00
pcmcia [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
rdma [IB] uverbs: have kernel return QP capabilities 2005-11-10 10:22:50 -08:00
rxrpc
scsi [SCSI] use a completion in scsi_send_eh_cmnd 2005-11-06 12:49:36 -06:00
sound [ALSA] version 1.0.10rc3 2005-11-07 14:35:14 +01:00
video