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

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

- RPC completion has to wait for memory invalidation, which is
  not a part of the server/network round trip

- Recently a context switch was introduced into the reply handler,
  which further artificially inflates the measure of RPC RTT

To capture just server and network latencies more precisely: when
receiving a reply, compute the RTT as soon as the XID is recognized
rather than at RPC completion time.

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