diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2019-11-21 00:25:46 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-11-22 01:05:14 +0300 |
commit | 8729aaba74626c4ebce3abf1b9e96bb62d2958ca (patch) | |
tree | 992c0a2b7dd0643f4a8bf268efb51c748bfcb83c /net/sunrpc/xprtrdma/svc_rdma_backchannel.c | |
parent | 7c149057d044c52ed1e1d4ee50cf412c8d0f7295 (diff) | |
download | linux-8729aaba74626c4ebce3abf1b9e96bb62d2958ca.tar.xz |
SUNRPC: Fix backchannel latency metrics
I noticed that for callback requests, the reported backlog latency
is always zero, and the rtt value is crazy big. The problem was that
rqst->rq_xtime is never set for backchannel requests.
Fixes: 78215759e20d ("SUNRPC: Make RTT measurement more ... ")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/svc_rdma_backchannel.c')
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma_backchannel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_backchannel.c b/net/sunrpc/xprtrdma/svc_rdma_backchannel.c index d1fcc41d5eb5..908e78bb87c6 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_backchannel.c +++ b/net/sunrpc/xprtrdma/svc_rdma_backchannel.c @@ -195,6 +195,7 @@ rpcrdma_bc_send_request(struct svcxprt_rdma *rdma, struct rpc_rqst *rqst) pr_info("%s: %*ph\n", __func__, 64, rqst->rq_buffer); #endif + rqst->rq_xtime = ktime_get(); rc = svc_rdma_bc_sendto(rdma, rqst, ctxt); if (rc) { svc_rdma_send_ctxt_put(rdma, ctxt); |