Skip to content

Commit

Permalink
NFSv4.1/pnfs: Add a tracepoint for return-on-close events
Browse files Browse the repository at this point in the history
Allow tracing of return-on-close.

Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
trondmypd committed Aug 25, 2015
1 parent aaae3f0 commit 6a463be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfs/nfs4trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
1 change: 1 addition & 0 deletions fs/nfs/pnfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6a463be

Please sign in to comment.