]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
NFSv4.1/pnfs: Add a tracepoint for return-on-close events
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Aug 2015 20:40:47 +0000 (15:40 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 25 Aug 2015 18:40:05 +0000 (14:40 -0400)
Allow tracing of return-on-close.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4trace.h
fs/nfs/pnfs.c

index 470af1a78becf206c6e2de9aae89b61b35eb8452..0b67f7825d00af8257e343071ecac59e24be9f5e 100644 (file)
@@ -1136,6 +1136,7 @@ TRACE_EVENT(nfs4_layoutget,
 
 DEFINE_NFS4_INODE_EVENT(nfs4_layoutcommit);
 DEFINE_NFS4_INODE_EVENT(nfs4_layoutreturn);
+DEFINE_NFS4_INODE_EVENT(nfs4_layoutreturn_on_close);
 
 #endif /* CONFIG_NFS_V4_1 */
 
index 8a3f30b695e286db4710c365f70aa346a2a6960e..cf90eeda9d7191904d4883ccebacee5b9ecef6f8 100644 (file)
@@ -1144,6 +1144,7 @@ void pnfs_roc_set_barrier(struct inode *ino, u32 barrier)
        if (pnfs_seqid_is_newer(barrier, lo->plh_barrier))
                lo->plh_barrier = barrier;
        spin_unlock(&ino->i_lock);
+       trace_nfs4_layoutreturn_on_close(ino, 0);
 }
 
 void pnfs_roc_get_barrier(struct inode *ino, u32 *barrier)