summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprt.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2018-01-03 21:38:25 +0100
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2018-01-23 15:44:39 +0100
commit82476d9f955be0dfefadad22a87be6151cd70777 (patch)
treeb4b73d0bb569d36d44055ae3d790ed94d6083155 /net/sunrpc/xprt.c
parentxprtrdma: Correct some documenting comments (diff)
downloadlinux-82476d9f955be0dfefadad22a87be6151cd70777.tar.xz
linux-82476d9f955be0dfefadad22a87be6151cd70777.zip
SUNRPC: Trace xprt_timer events
Track RPC timeouts: report the XID and the server address to match the content of network capture. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprt.c')
-rw-r--r--net/sunrpc/xprt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c
index 33b74fd84051..2436fd1125fc 100644
--- a/net/sunrpc/xprt.c
+++ b/net/sunrpc/xprt.c
@@ -940,8 +940,8 @@ static void xprt_timer(struct rpc_task *task)
if (task->tk_status != -ETIMEDOUT)
return;
- dprintk("RPC: %5u xprt_timer\n", task->tk_pid);
+ trace_xprt_timer(xprt, req->rq_xid, task->tk_status);
if (!req->rq_reply_bytes_recvd) {
if (xprt->ops->timer)
xprt->ops->timer(xprt, task);