- powerpc-fix-idr-locking-in-init_new_context.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     powerpc: fix idr locking in init_new_context

has been removed from the -mm tree.  Its filename is

     powerpc-fix-idr-locking-in-init_new_context.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: powerpc: fix idr locking in init_new_context
From: Sonny Rao <sonny@xxxxxxxxxxx>

We always need to serialize accesses to mmu_context_idr.

I hit this bug when testing with a small number of mmu contexts.

Signed-off-by: Sonny Rao <sonny@xxxxxxxxxxx>
Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/powerpc/mm/mmu_context_64.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN arch/powerpc/mm/mmu_context_64.c~powerpc-fix-idr-locking-in-init_new_context arch/powerpc/mm/mmu_context_64.c
--- a/arch/powerpc/mm/mmu_context_64.c~powerpc-fix-idr-locking-in-init_new_context
+++ a/arch/powerpc/mm/mmu_context_64.c
@@ -44,7 +44,9 @@ again:
 		return err;
 
 	if (index > MAX_CONTEXT) {
+		spin_lock(&mmu_context_lock);
 		idr_remove(&mmu_context_idr, index);
+		spin_unlock(&mmu_context_lock);
 		return -ENOMEM;
 	}
 
_

Patches currently in -mm which might be from sonny@xxxxxxxxxxx are

origin.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux