diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2024-06-12 10:48:21 -0400 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-07-08 14:10:04 -0400 |
commit | 3a6adfcae8c4ac45f19c141958e8778359f40173 (patch) | |
tree | 17103e508ffd322d99215a666be57c30b145f8b3 /net/sunrpc | |
parent | abc02e5602f7bf9bbae1e8999570a2ad5114578c (diff) | |
download | linux-3a6adfcae8c4ac45f19c141958e8778359f40173.tar.gz linux-3a6adfcae8c4ac45f19c141958e8778359f40173.tar.bz2 linux-3a6adfcae8c4ac45f19c141958e8778359f40173.zip |
SUNRPC: Add a trace point in svc_xprt_deferred_close
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 <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svc_xprt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index dd86d7f1e97e..d3735ab3e6d1 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c @@ -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); } |