]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fix deadlock with mmu_hash_lock in hash_page_sync
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 30 Mar 2008 20:49:27 +0000 (07:49 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 3 Apr 2008 11:11:11 +0000 (22:11 +1100)
commit74a987be6869592869eee81bfd2ab8e7e0b7158b
tree3ed9768f865989ab221bcbfbfb8df930997cb3b6
parent728280b095c9020bab5fa973da1ef9edc1572214
[POWERPC] Fix deadlock with mmu_hash_lock in hash_page_sync

hash_page_sync() takes and releases the low level mmu hash
lock in order to sync with other processors disposing of page
tables.  Because that lock can be needed to service hash misses
triggered by interrupt handlers, taking it must be done with
interrupts off.  However, hash_page_sync() appears to be called
with interrupts enabled, thus causing occasional deadlocks.

We fix it by making sure hash_page_sync() masks interrupts while
holding the lock.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/hash_low_32.S