SUNRPC: Make RTT measurement more precise (Send)
authorChuck Lever <chuck.lever@oracle.com>
Mon, 5 Mar 2018 20:13:07 +0000 (15:13 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 10 Apr 2018 20:06:22 +0000 (16:06 -0400)
commit78215759e20d859b8f1de7d0aebd08878fbc4eed
tree8817e841aacc3cd1272679b0cf11345000fff89a
parent0b87a46b437c1629bc7d79f3c5a0ba3608c37544
SUNRPC: Make RTT measurement more precise (Send)

Some RPC transports have more overhead in their send_request
callouts than others. For example, for RPC-over-RDMA:

- Marshaling an RPC often has to DMA map the RPC arguments

- Registration methods perform memory registration as part of
  marshaling

To capture just server and network latencies more precisely: when
sending a Call, capture the rq_xtime timestamp _after_ the transport
header has been marshaled.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprt.c
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtsock.c