]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda3eca79942b7745b0180385b50119afdd8755dc
treec8e7089ab7e52770d57842ecd189275de08bd789
parent000b023b8e515f1f387426df7389abf2cfa5bb09
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