summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2011-10-26 21:41:04 +0200
committerSteve French <smfrench@gmail.com>2011-10-28 21:09:23 +0200
commitd12799b4c3c4d1e65d7fdbb5d91538c92d6863dd (patch)
tree02e0ac60f194bccb8238a3628a2969317d58c289
parentMerge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/... (diff)
downloadlinux-d12799b4c3c4d1e65d7fdbb5d91538c92d6863dd.tar.xz
linux-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>
-rw-r--r--fs/cifs/file.c1
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);
}
}