Skip to content

Commit 3a6adfc

Browse files
committed
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>
1 parent abc02e5 commit 3a6adfc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sunrpc/svc_xprt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ int svc_print_xprts(char *buf, int maxlen)
157157
*/
158158
void svc_xprt_deferred_close(struct svc_xprt *xprt)
159159
{
160+
trace_svc_xprt_close(xprt);
160161
if (!test_and_set_bit(XPT_CLOSE, &xprt->xpt_flags))
161162
svc_xprt_enqueue(xprt);
162163
}

0 commit comments

Comments
 (0)