projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ff12cf
)
Use non atomic unlock
author
Nick Piggin
<nickpiggin@yahoo.com.au>
Tue, 8 Jan 2008 07:20:27 +0000
(23:20 -0800)
committer
Christoph Lameter
<christoph@stapp.engr.sgi.com>
Fri, 8 Feb 2008 01:47:42 +0000
(17:47 -0800)
Slub can use the non-atomic version to unlock because other flags will not
get modified with the lock held.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/slub.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/slub.c
b/mm/slub.c
index ac836d31e3be1243729d59d49141e2b6f901a612..bccfb6a17864e735e75ae6349487738e6a14e767 100644
(file)
--- a/
mm/slub.c
+++ b/
mm/slub.c
@@
-1219,7
+1219,7
@@
static __always_inline void slab_lock(struct page *page)
static __always_inline void slab_unlock(struct page *page)
{
- bit_spin_unlock(PG_locked, &page->flags);
+
__
bit_spin_unlock(PG_locked, &page->flags);
}
static __always_inline int slab_trylock(struct page *page)