diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2011-10-26 23:41:04 +0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2011-10-28 14:09:23 -0500 |
commit | d12799b4c3c4d1e65d7fdbb5d91538c92d6863dd (patch) | |
tree | 02e0ac60f194bccb8238a3628a2969317d58c289 /fs/cifs | |
parent | f362f98e7c445643d27c610bb7a86b79727b592e (diff) | |
download | lwn-d12799b4c3c4d1e65d7fdbb5d91538c92d6863dd.tar.gz lwn-d12799b4c3c4d1e65d7fdbb5d91538c92d6863dd.zip |
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: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/file.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index ea096ce5d4f7..91e05f2f0acf 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -778,7 +778,6 @@ try_again: else { mutex_lock(&cinode->lock_mutex); list_del_init(&lock->blist); - mutex_unlock(&cinode->lock_mutex); } } |