aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index ea78f6f81ce2..b65166eb111e 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -1136,11 +1136,11 @@ cifs_push_posix_locks(struct cifsFileInfo *cfile)
1136 if (!flctx) 1136 if (!flctx)
1137 goto out; 1137 goto out;
1138 1138
1139 spin_lock(&inode->i_lock); 1139 spin_lock(&flctx->flc_lock);
1140 list_for_each(el, &flctx->flc_posix) { 1140 list_for_each(el, &flctx->flc_posix) {
1141 count++; 1141 count++;
1142 } 1142 }
1143 spin_unlock(&inode->i_lock); 1143 spin_unlock(&flctx->flc_lock);
1144 1144
1145 INIT_LIST_HEAD(&locks_to_send); 1145 INIT_LIST_HEAD(&locks_to_send);
1146 1146
@@ -1159,7 +1159,7 @@ cifs_push_posix_locks(struct cifsFileInfo *cfile)
1159 } 1159 }
1160 1160
1161 el = locks_to_send.next; 1161 el = locks_to_send.next;
1162 spin_lock(&inode->i_lock); 1162 spin_lock(&flctx->flc_lock);
1163 list_for_each_entry(flock, &flctx->flc_posix, fl_list) { 1163 list_for_each_entry(flock, &flctx->flc_posix, fl_list) {
1164 if (el == &locks_to_send) { 1164 if (el == &locks_to_send) {
1165 /* 1165 /*
@@ -1181,7 +1181,7 @@ cifs_push_posix_locks(struct cifsFileInfo *cfile)
1181 lck->type = type; 1181 lck->type = type;
1182 lck->offset = flock->fl_start; 1182 lck->offset = flock->fl_start;
1183 } 1183 }
1184 spin_unlock(&inode->i_lock); 1184 spin_unlock(&flctx->flc_lock);
1185 1185
1186 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { 1186 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) {
1187 int stored_rc; 1187 int stored_rc;