mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
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>
This commit is contained in:
parent
8ff12cfc00
commit
a76d354629
1 changed files with 1 additions and 1 deletions
|
@ -1219,7 +1219,7 @@ static __always_inline void slab_lock(struct page *page)
|
||||||
|
|
||||||
static __always_inline void slab_unlock(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)
|
static __always_inline int slab_trylock(struct page *page)
|
||||||
|
|
Loading…
Reference in a new issue