summaryrefslogtreecommitdiff
path: root/mm/slub.c
diff options
context:
space:
mode:
authorNick Piggin <nickpiggin@yahoo.com.au>2008-01-07 23:20:27 -0800
committerChristoph Lameter <christoph@stapp.engr.sgi.com>2008-02-07 17:47:42 -0800
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)
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)