diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-12-06 21:24:33 +0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-12-07 13:08:07 -0600 |
commit | 03eca704cfa426aebf6edcc0208536835c109a9f (patch) | |
tree | 8d7651f70979ca8b0bab080325eaac4ad00b766c /fs | |
parent | 081c0414dcdfd13c4276db30a775a5d0f72ad91a (diff) | |
download | linux-exynos-03eca704cfa426aebf6edcc0208536835c109a9f.tar.gz linux-exynos-03eca704cfa426aebf6edcc0208536835c109a9f.tar.bz2 linux-exynos-03eca704cfa426aebf6edcc0208536835c109a9f.zip |
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.c | 2 |
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) if (cinode->clientCanCacheRead == 0) { rc = filemap_fdatawait(inode->i_mapping); mapping_set_error(inode->i_mapping, rc); - invalidate_remote_inode(inode); + cifs_invalidate_mapping(inode); } cFYI(1, "Oplock flush inode %p rc %d", inode, rc); } |