diff options
author | Bjoern Brandenburg <bbb@swan.cs.unc.edu> | 2007-02-20 12:16:57 -0500 |
---|---|---|
committer | Bjoern Brandenburg <bbb@swan.cs.unc.edu> | 2007-02-20 12:16:57 -0500 |
commit | 462092b802ee17a756f9db1f6f86b2832b58c968 (patch) | |
tree | 65fc67a8eb465fb3da577036ea3242a4a4971fe6 /include/linux/queuelock.h | |
parent | 7b27859f5c93b477182a92602a43779b69818763 (diff) |
Fix wrong initialization of queue lock.
The first needs to be unlocked, not the last.
Diffstat (limited to 'include/linux/queuelock.h')
-rw-r--r-- | include/linux/queuelock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/queuelock.h b/include/linux/queuelock.h index aaefdcaa4c..5ed74899da 100644 --- a/include/linux/queuelock.h +++ b/include/linux/queuelock.h | |||
@@ -52,7 +52,7 @@ static inline void queue_lock_init(queuelock_t *lock) | |||
52 | lock->slots[i].val = MUST_WAIT; | 52 | lock->slots[i].val = MUST_WAIT; |
53 | lock->spin_slot[i] = i; | 53 | lock->spin_slot[i] = i; |
54 | } | 54 | } |
55 | lock->slots[i].val = HAS_LOCK; | 55 | lock->slots[0].val = HAS_LOCK; |
56 | atomic_set(&lock->next_slot, 0); | 56 | atomic_set(&lock->next_slot, 0); |
57 | } | 57 | } |
58 | 58 | ||