Commit 3a6adfca authored by Chuck Lever's avatar Chuck Lever
Browse files

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: default avatarChuck Lever <chuck.lever@oracle.com>
parent abc02e56
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
}