Fix a typo in sem_lock. Of course we need to unlock the local
semaphore lock before jumping to lock_all, in the rare case that
somebody started a complex operation while we were spinning on
the spinlock.
Can be folded into patch 7/7 before merging
Signed-off-by: Rik van Riel <riel@redhat.com>
Reported-by: Michel Lespinasse <walken@google.com>
* we may need to look at things we did not lock here.
*/
if (unlikely(sma->complex_count)) {
- spin_unlock(&sma->sem_perm.lock);
+ spin_unlock(&sem->lock);
goto lock_all;
}
locknum = sops->sem_num;