aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-12-06 12:24:33 -0500
committerSteve French <smfrench@gmail.com>2012-12-07 14:08:07 -0500
commit03eca704cfa426aebf6edcc0208536835c109a9f (patch)
tree8d7651f70979ca8b0bab080325eaac4ad00b766c /fs
parent081c0414dcdfd13c4276db30a775a5d0f72ad91a (diff)
CIFS: Fix possible data coherency problem after oplock break to None
by using cifs_invalidate_mapping rather than invalidate_remote_inode in cifs_oplock_break - this invalidates all inode pages and resets fscache cookies. Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index ebebbb2bc1fb..1b322d041f1e 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -3554,7 +3554,7 @@ void cifs_oplock_break(struct work_struct *work)
3554 if (cinode->clientCanCacheRead == 0) { 3554 if (cinode->clientCanCacheRead == 0) {
3555 rc = filemap_fdatawait(inode->i_mapping); 3555 rc = filemap_fdatawait(inode->i_mapping);
3556 mapping_set_error(inode->i_mapping, rc); 3556 mapping_set_error(inode->i_mapping, rc);
3557 invalidate_remote_inode(inode); 3557 cifs_invalidate_mapping(inode);
3558 } 3558 }
3559 cFYI(1, "Oplock flush inode %p rc %d", inode, rc); 3559 cFYI(1, "Oplock flush inode %p rc %d", inode, rc);
3560 } 3560 }