nfsd: Add I/O trace points in the NFSv4 read proc
authorChuck Lever <chuck.lever@oracle.com>
Wed, 28 Mar 2018 17:29:11 +0000 (13:29 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 3 Apr 2018 19:08:15 +0000 (15:08 -0400)
commit87c5942e8fae81ac296267654a047eb2db81592b
treede00193297b93692cfc86f475fe7cb6d6dbdc56a
parentd890be159a71395bd4ceca09233a8a56d7da69ee
nfsd: Add I/O trace points in the NFSv4 read proc

NFSv4 read compound processing invokes nfsd_splice_read and
nfs_readv directly, so the trace points currently in nfsd_read are
not invoked for NFSv4 reads.

Move the NFSD READ trace points to common helpers so that NFSv4
reads are captured.

Also, record any local I/O error that occurs, the total count of
bytes that were actually returned, and whether splice or vectored
read was used.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4xdr.c
fs/nfsd/trace.h
fs/nfsd/vfs.c
fs/nfsd/vfs.h