aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorNick Piggin <nickpiggin@yahoo.com.au>2008-01-08 02:20:27 -0500
committerChristoph Lameter <christoph@stapp.engr.sgi.com>2008-02-07 20:47:42 -0500
commita76d354629ea46c449705970a2c0b9e9090d6f03 (patch)
treeb2e1b9db59125e9e9a7866a8aff58165ac2ea1fd /mm/slub.c
parent8ff12cfc009a2a38d87fa7058226fe197bb2696f (diff)
Use non atomic unlock
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>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index ac836d31e3be..bccfb6a17864 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1219,7 +1219,7 @@ static __always_inline void slab_lock(struct page *page)
1219 1219
1220static __always_inline void slab_unlock(struct page *page) 1220static __always_inline void slab_unlock(struct page *page)
1221{ 1221{
1222 bit_spin_unlock(PG_locked, &page->flags); 1222 __bit_spin_unlock(PG_locked, &page->flags);
1223} 1223}
1224 1224
1225static __always_inline int slab_trylock(struct page *page) 1225static __always_inline int slab_trylock(struct page *page)