Skip to content

Commit

Permalink
SUNRPC: Add a trace point in svc_xprt_deferred_close
Browse files Browse the repository at this point in the history
The trace point in svc_xprt_close() reports only some local close
requests. Try to capture more local close requests.

Note that "trace-cmd record -T -e sunrpc:svc_xprt_close" will
neatly capture the identity of the caller requesting the close.

Signed-off-by: Chuck Lever <[email protected]>
  • Loading branch information
chucklever committed Jul 8, 2024
1 parent abc02e5 commit 3a6adfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/sunrpc/svc_xprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ int svc_print_xprts(char *buf, int maxlen)
*/
void svc_xprt_deferred_close(struct svc_xprt *xprt)
{
trace_svc_xprt_close(xprt);
if (!test_and_set_bit(XPT_CLOSE, &xprt->xpt_flags))
svc_xprt_enqueue(xprt);
}
Expand Down

0 comments on commit 3a6adfc

Please sign in to comment.