Skip to content

Commit

Permalink
Use non atomic unlock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nick Piggin authored and Christoph Lameter committed Feb 8, 2008
1 parent 8ff12cf commit a76d354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a76d354

Please sign in to comment.