From: Nick Piggin Date: Tue, 8 Jan 2008 07:20:27 +0000 (-0800) Subject: Use non atomic unlock X-Git-Tag: v2.6.25-rc1~284^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a76d354629ea46c449705970a2c0b9e9090d6f03;p=~shefty%2Frdma-dev.git 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 Acked-by: Christoph Lameter Signed-off-by: Andrew Morton --- diff --git a/mm/slub.c b/mm/slub.c index ac836d31e3b..bccfb6a1786 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)