]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita63d19eabb8d37076d3e005881d05697160fd853
tree992c0a2b7dd0643f4a8bf268efb51c748bfcb83c
parent873ff945f9c4a6ecd1a6f298d3de47109bd26393
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: ca94db35d89a ("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