From: Benjamin Herrenschmidt Date: Sun, 30 Mar 2008 20:49:27 +0000 (+1100) Subject: [POWERPC] Fix deadlock with mmu_hash_lock in hash_page_sync X-Git-Tag: v2.6.25-rc9~76^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b991f05f1326fd9e6212851d0f2099875906dd16;p=pandora-kernel.git [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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed