Commit d12799b4 authored by Pavel Shilovsky's avatar Pavel Shilovsky Committed by Steve French

CIFS: Remove extra mutex_unlock in cifs_lock_add_if

to prevent the mutex being unlocked twice if we interrupt a blocked lock.
Signed-off-by: default avatarPavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent f362f98e
......@@ -778,7 +778,6 @@ cifs_lock_add_if(struct cifsInodeInfo *cinode, __u64 offset, __u64 length,
else {
mutex_lock(&cinode->lock_mutex);
list_del_init(&lock->blist);
mutex_unlock(&cinode->lock_mutex);
}
}
......
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