projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
975b365
)
[POWERPC] Fix idr locking in init_new_context
author
Sonny Rao
<sonny@burdell.org>
Tue, 27 Jun 2006 12:46:09 +0000
(08:46 -0400)
committer
Paul Mackerras
<paulus@samba.org>
Thu, 29 Jun 2006 06:22:46 +0000
(16:22 +1000)
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@burdell.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/mmu_context_64.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/mm/mmu_context_64.c
b/arch/powerpc/mm/mmu_context_64.c
index 65d18dca266ff0e3b26ed1212ca3da5990ee150c..e2051efa09c58d413d95814615c94f2d683b8b22 100644
(file)
--- a/
arch/powerpc/mm/mmu_context_64.c
+++ b/
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;
}