SUNRPC: Fix backchannel latency metrics
authorChuck Lever <chuck.lever@oracle.com>
Wed, 20 Nov 2019 21:25:46 +0000 (16:25 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 21 Nov 2019 22:05:14 +0000 (17:05 -0500)
commit8729aaba74626c4ebce3abf1b9e96bb62d2958ca
tree992c0a2b7dd0643f4a8bf268efb51c748bfcb83c
parent7c149057d044c52ed1e1d4ee50cf412c8d0f7295
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>
net/sunrpc/xprtrdma/svc_rdma_backchannel.c
net/sunrpc/xprtsock.c