add missing '!', don't why it was lost when checked in.
This commit is contained in:
parent
78d4da2af3
commit
455fc5775f
@ -45,7 +45,7 @@ simplelock_init(struct simplelock *lock)
|
||||
static inline void
|
||||
simplelock_lock(struct simplelock *lock)
|
||||
{
|
||||
while (atomic_cmpset_int(&lock->s_lock, 0, 1))
|
||||
while (!atomic_cmpset_int(&lock->s_lock, 0, 1))
|
||||
;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user