mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
NFSD: Trace stateids returned via DELEGRETURN
[ Upstream commit 20eee313ff ]
Handing out a delegation stateid is recorded with the
nfsd_deleg_read tracepoint, but there isn't a matching tracepoint
for recording when the stateid is returned.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
519a80ea5a
commit
9fbef7dcd8
@@ -6935,6 +6935,7 @@ nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
|||||||
if (status)
|
if (status)
|
||||||
goto put_stateid;
|
goto put_stateid;
|
||||||
|
|
||||||
|
trace_nfsd_deleg_return(stateid);
|
||||||
wake_up_var(d_inode(cstate->current_fh.fh_dentry));
|
wake_up_var(d_inode(cstate->current_fh.fh_dentry));
|
||||||
destroy_delegation(dp);
|
destroy_delegation(dp);
|
||||||
put_stateid:
|
put_stateid:
|
||||||
|
|||||||
@@ -604,6 +604,7 @@ DEFINE_STATEID_EVENT(layout_recall_release);
|
|||||||
|
|
||||||
DEFINE_STATEID_EVENT(open);
|
DEFINE_STATEID_EVENT(open);
|
||||||
DEFINE_STATEID_EVENT(deleg_read);
|
DEFINE_STATEID_EVENT(deleg_read);
|
||||||
|
DEFINE_STATEID_EVENT(deleg_return);
|
||||||
DEFINE_STATEID_EVENT(deleg_recall);
|
DEFINE_STATEID_EVENT(deleg_recall);
|
||||||
|
|
||||||
DECLARE_EVENT_CLASS(nfsd_stateseqid_class,
|
DECLARE_EVENT_CLASS(nfsd_stateseqid_class,
|
||||||
|
|||||||
Reference in New Issue
Block a user