diff options
author | Nick Piggin <nickpiggin@yahoo.com.au> | 2008-01-08 02:20:27 -0500 |
---|---|---|
committer | Christoph Lameter <christoph@stapp.engr.sgi.com> | 2008-02-07 20:47:42 -0500 |
commit | a76d354629ea46c449705970a2c0b9e9090d6f03 (patch) | |
tree | b2e1b9db59125e9e9a7866a8aff58165ac2ea1fd /mm | |
parent | 8ff12cfc009a2a38d87fa7058226fe197bb2696f (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')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1219,7 +1219,7 @@ static __always_inline void slab_lock(struct page *page) | |||
1219 | 1219 | ||
1220 | static __always_inline void slab_unlock(struct page *page) | 1220 | static __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 | ||
1225 | static __always_inline int slab_trylock(struct page *page) | 1225 | static __always_inline int slab_trylock(struct page *page) |