Commit 656ca39a authored by David Kilroy's avatar David Kilroy Committed by James Toy

* Correct bug in _spin_trylock_bh

Signed-off-by: default avatarDavid Kilroy <kilroyd@googlemail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 0c2a5f1c
......@@ -97,7 +97,7 @@ static inline int _write_trylock(rwlock_t *lock)
{ __LOCK(lock); return 1; }
static inline int _spin_trylock_bh(spinlock_t *lock)
{ __LOCK(lock); return 1; }
{ __LOCK_BH(lock); return 1; }
static inline void _spin_unlock(spinlock_t *lock)
{ __UNLOCK(lock); }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment