> On Jun 11, 2019, at 3:21 PM, Trond Myklebust <trondmy@xxxxxxxxxxxxxxx> wrote: > > On Tue, 2019-06-11 at 14:31 -0400, Chuck Lever wrote: >>> On Jun 11, 2019, at 2:25 PM, Trond Myklebust <trondmy@xxxxxxxxx> >>> wrote: >>> >>> 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 >> >> I also fixed these items in my for-5.3 patch series, but >> my patches add TRACE_DEFINE_ENUM definitions. > > Oh. I missed those because they were embedded with the RDMA changes. > > Can you please fix them up to also change the (1 << NFS_INO_*) stuff to > use the BIT() macro? That causes an expansion to an unsigned long type > instead of the current signed int. Yes, absolutely. >>> 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 >>> >> >> -- >> Chuck Lever >> >> >> > -- > Trond Myklebust > Linux NFS client maintainer, Hammerspace > trond.myklebust@xxxxxxxxxxxxxxx -- Chuck Lever