NFS: add I/O performance counters
authorChuck Lever <cel@netapp.com>
Mon, 20 Mar 2006 18:44:14 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:14 +0000 (13:44 -0500)
commit91d5b47023b608227d605d1e916b29dd0215bff7
tree31dbb285639ea68db3abc0c4129988f02d50f11a
parentd9ef5a8c26aab09762afce43df64736720b4860e
NFS: add I/O performance counters

Invoke the byte and event counter macros where we want to count bytes and
events.

Clean-up: fix a possible NULL dereference in nfs_lock, and simplify
nfs_file_open.

Test-plan:
fsx and iozone on UP and SMP systems, with and without pre-emption.  Watch
for memory overwrite bugs, and performance loss (significantly more CPU
required per op).

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
fs/nfs/direct.c
fs/nfs/file.c
fs/nfs/inode.c
fs/nfs/read.c
fs/nfs/write.c