SUNRPC: Add trace event that reports reply page vector alignment
authorChuck Lever <chuck.lever@oracle.com>
Mon, 11 Feb 2019 16:24:16 +0000 (11:24 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 13 Feb 2019 16:42:17 +0000 (11:42 -0500)
commit7be9cea3600ba24f45733f823cb4ecb5a40f5db7
tree9c6fadf1ca63c7f2afd56293094f8484c641586d
parent5582863f450ca44c472dbf4812a62f4e0e68b0c8
SUNRPC: Add trace event that reports reply page vector alignment

We don't want READ payloads that are partially in the head iovec and
in the page buffer because this requires pull-up, which can be
expensive.

The NFS/RPC client tries hard to predict the size of the head iovec
so that the incoming READ data payload lands only in the page
vector, but it doesn't always get it right. To help diagnose such
problems, add a trace point in the logic that decodes READ-like
operations that reports whether pull-up is being done.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/trace/events/sunrpc.h
net/sunrpc/xdr.c