mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 09:09:55 -04:00
nfs: add a tracepoint to nfs_inode_detach_delegation_locked
We have tracepoints for setting a delegation and reclaiming them. Add a tracepoint for when the delegation is being detached from the inode. Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/20250618-nfs-tracepoints-v2-2-540c9fb48da2@kernel.org Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
committed by
Trond Myklebust
parent
8c206b0a12
commit
0139a30ada
@@ -355,6 +355,8 @@ nfs_detach_delegation_locked(struct nfs_inode *nfsi,
|
||||
rcu_dereference_protected(nfsi->delegation,
|
||||
lockdep_is_held(&clp->cl_lock));
|
||||
|
||||
trace_nfs4_detach_delegation(&nfsi->vfs_inode, delegation->type);
|
||||
|
||||
if (deleg_cur == NULL || delegation != deleg_cur)
|
||||
return NULL;
|
||||
|
||||
|
||||
@@ -983,6 +983,7 @@ DECLARE_EVENT_CLASS(nfs4_set_delegation_event,
|
||||
TP_ARGS(inode, fmode))
|
||||
DEFINE_NFS4_SET_DELEGATION_EVENT(nfs4_set_delegation);
|
||||
DEFINE_NFS4_SET_DELEGATION_EVENT(nfs4_reclaim_delegation);
|
||||
DEFINE_NFS4_SET_DELEGATION_EVENT(nfs4_detach_delegation);
|
||||
|
||||
TRACE_EVENT(nfs4_delegreturn_exit,
|
||||
TP_PROTO(
|
||||
|
||||
Reference in New Issue
Block a user