SUNRPC: provide a mechanism for collecting stats in the RPC client
authorChuck Lever <cel@netapp.com>
Mon, 20 Mar 2006 18:44:22 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:22 +0000 (13:44 -0500)
commit11c556b3d8d481829ab5f9933a25d29b00913b5a
treed1127fa5d22aeb035ca9977abbc73a29d5436fbe
parentef759a2e54ed434b2f72b52a14edecd6d4eadf74
SUNRPC: provide a mechanism for collecting stats in the RPC client

Add a simple mechanism for collecting stats in the RPC client.  Stats are
tabulated during xprt_release.  Note that per_cpu shenanigans are not
required here because the RPC client already serializes on the transport
write lock.

Test plan:
Compile kernel with CONFIG_NFS enabled.  Basic performance regression
testing with high-speed networking and high performance server.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/clnt.h
include/linux/sunrpc/metrics.h [new file with mode: 0644]
net/sunrpc/clnt.c
net/sunrpc/stats.c
net/sunrpc/xprt.c