aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/9p/vfs_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
index b40133796b87..8d29e1e03dfa 100644
--- a/fs/9p/vfs_file.c
+++ b/fs/9p/vfs_file.c
@@ -194,7 +194,7 @@ static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl)
194 for (;;) { 194 for (;;) {
195 res = p9_client_lock_dotl(fid, &flock, &status); 195 res = p9_client_lock_dotl(fid, &flock, &status);
196 if (res < 0) 196 if (res < 0)
197 break; 197 goto out_unlock;
198 198
199 if (status != P9_LOCK_BLOCKED) 199 if (status != P9_LOCK_BLOCKED)
200 break; 200 break;
@@ -220,6 +220,7 @@ static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl)
220 BUG(); 220 BUG();
221 } 221 }
222 222
223out_unlock:
223 /* 224 /*
224 * incase server returned error for lock request, revert 225 * incase server returned error for lock request, revert
225 * it locally 226 * it locally