Anton Blanchard 8bdafa39a4 powerpc: Fix deadlock in icswx code
The icswx code introduced an A-B B-A deadlock:

     CPU0                    CPU1
     ----                    ----
lock(&anon_vma->mutex);
                             lock(&mm->mmap_sem);
                             lock(&anon_vma->mutex);
lock(&mm->mmap_sem);

Instead of using the mmap_sem to keep mm_users constant, take the
page table spinlock.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: <stable@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2011-09-20 15:53:23 +10:00
..
2011-01-13 17:32:39 -08:00
2010-10-27 18:03:05 -07:00
2011-09-20 09:19:40 +10:00
2011-09-20 09:19:40 +10:00
2011-09-20 09:19:40 +10:00
2010-01-15 13:20:08 +11:00
2011-09-20 15:53:23 +10:00
2011-05-19 14:30:43 +10:00
2011-05-19 14:30:43 +10:00
2011-09-20 09:19:40 +10:00
2011-09-20 09:19:40 +10:00
2011-09-20 09:19:40 +10:00