Add a 'deferred cache invalidation' mode that we can use when we thing the NFS cache may have been changed on the server, but the file in question is already open and is cached on the client. In order to avoid performance issues due to false positive detection of server changes, we defer invalidating the cache until the file has been closed, and the cached data is no longer in active use. Trond Myklebust (3): NFS: Fix up ftrace printout of the cache invalidation flags NFS: Fix up ftrace logging of nfs_inode flags NFS: Add deferred cache invalidation for close-to-open consistency violations fs/nfs/dir.c | 4 ++++ fs/nfs/inode.c | 15 +++++++++++---- fs/nfs/nfstrace.h | 22 ++++++++++++++-------- include/linux/nfs_fs.h | 2 ++ 4 files changed, 31 insertions(+), 12 deletions(-) -- 2.21.0