nfsd: Add I/O trace points in the NFSv4 write path
authorChuck Lever <chuck.lever@oracle.com>
Tue, 27 Mar 2018 14:53:27 +0000 (10:53 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 3 Apr 2018 19:08:15 +0000 (15:08 -0400)
commitd890be159a71395bd4ceca09233a8a56d7da69ee
treec8e7089ab7e52770d57842ecd189275de08bd789
parentf394b62b7b0dd24757e9813e19f4b6091c5a28f6
nfsd: Add I/O trace points in the NFSv4 write path

NFSv4 write compound processing invokes nfsd_vfs_write directly. The
trace points currently in nfsd_write are not effective for NFSv4
writes.

Move the trace points into the shared nfsd_vfs_write() helper.

After the I/O, we also want to record any local I/O error that
might have occurred, and the total count of bytes that were actually
moved (rather than the requested number).

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