mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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>
This commit is contained in:
parent
abc02e5602
commit
3a6adfcae8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user