parisc: ensure broadcast tlb purge runs single threaded
commitbe61510387ff29c49603545a6db006932af97b2a
authorHelge Deller <deller@gmx.de>
Tue, 16 Jun 2009 20:51:48 +0000 (16 20:51 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 21:40:07 +0000 (30 14:40 -0700)
tree17f188abd4e6252ebfcd27ba9985708a8b7210b2
parent7cbf1b4881c935200d760bc6184131a114fada12
parisc: ensure broadcast tlb purge runs single threaded

commit e82a3b75127188f20c7780bec580e148beb29da7 upstream.

The TLB flushing functions on hppa, which causes PxTLB broadcasts on the system
bus, needs to be protected by irq-safe spinlocks to avoid irq handlers to deadlock
the kernel. The deadlocks only happened during I/O intensive loads and triggered
pretty seldom, which is why this bug went so long unnoticed.

Signed-off-by: Helge Deller <deller@gmx.de>
[edited to use spin_lock_irqsave on UP as well since we'd been locking there
 all this time anyway, --kyle]
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/parisc/include/asm/tlbflush.h
arch/parisc/kernel/cache.c
arch/parisc/kernel/pci-dma.c