aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprt.c
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@netapp.com>2012-02-17 13:15:24 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-17 13:39:47 -0500
commit0a702195234eb77c4097148285cccf7f095de9cf (patch)
tree40fead6b131fb3c24e3cd85e39fbba8057196457 /net/sunrpc/xprt.c
parentb6bf6e7d6f6fae1ddcae9e02dfe676bdc8fe892c (diff)
NFS: include filelayout DS rpc stats in mountstats
Include RPC statistics from all data servers in /proc/self/mountstats for pNFS filelayout mounts. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprt.c')
-rw-r--r--net/sunrpc/xprt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c
index 739df8a11382..32e37945a840 100644
--- a/net/sunrpc/xprt.c
+++ b/net/sunrpc/xprt.c
@@ -1137,7 +1137,10 @@ void xprt_release(struct rpc_task *task)
1137 return; 1137 return;
1138 1138
1139 xprt = req->rq_xprt; 1139 xprt = req->rq_xprt;
1140 rpc_count_iostats(task); 1140 if (task->tk_ops->rpc_count_stats != NULL)
1141 task->tk_ops->rpc_count_stats(task, task->tk_calldata);
1142 else if (task->tk_client)
1143 rpc_count_iostats(task, task->tk_client->cl_metrics);
1141 spin_lock_bh(&xprt->transport_lock); 1144 spin_lock_bh(&xprt->transport_lock);
1142 xprt->ops->release_xprt(xprt, task); 1145 xprt->ops->release_xprt(xprt, task);
1143 if (xprt->ops->release_request) 1146 if (xprt->ops->release_request)