NFS: include filelayout DS rpc stats in mountstats
[deliverable/linux.git] / net / sunrpc / xprt.c
index 739df8a113824e42ee7040908efa3a042a24688d..32e37945a8403157b875443556448d84c3ef7af5 100644 (file)
@@ -1137,7 +1137,10 @@ void xprt_release(struct rpc_task *task)
                return;
 
        xprt = req->rq_xprt;
-       rpc_count_iostats(task);
+       if (task->tk_ops->rpc_count_stats != NULL)
+               task->tk_ops->rpc_count_stats(task, task->tk_calldata);
+       else if (task->tk_client)
+               rpc_count_iostats(task, task->tk_client->cl_metrics);
        spin_lock_bh(&xprt->transport_lock);
        xprt->ops->release_xprt(xprt, task);
        if (xprt->ops->release_request)
This page took 0.024945 seconds and 5 git commands to generate.