]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Add deferred cache invalidation for close-to-open consistency violations
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 22 May 2019 12:38:57 +0000 (08:38 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Jul 2019 18:54:49 +0000 (14:54 -0400)
commitcfd03a30fc3370640c254864e8b8a53d3d223e4d
treea0502ea51a60baedffff7a73b0f762244b469a2b
parent67b0be40acc0271acadb79e710a0b47c042c54c8
NFS: Add deferred cache invalidation for close-to-open consistency violations

If the client detects that close-to-open cache consistency has been
violated, and that the file or directory has been changed on the
server, then do a cache invalidation when we're done working with
the file.
The reason we don't do an immediate cache invalidation is that we
want to avoid performance problems due to false positives. Also,
note that we cannot guarantee cache consistency in this situation
even if we do invalidate the cache.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c
fs/nfs/inode.c
include/linux/nfs_fs.h