SUNRPC: provide a mechanism for collecting stats in the RPC client
[deliverable/linux.git] / net / sunrpc / xprt.c
index c6241976a6eebafcb233d5cde9a65b0392087acf..eb5a262e024e1a185124b4fcbbb1fa2af7b50ef3 100644 (file)
@@ -44,6 +44,7 @@
 #include <linux/random.h>
 
 #include <linux/sunrpc/clnt.h>
+#include <linux/sunrpc/metrics.h>
 
 /*
  * Local variables
@@ -859,6 +860,7 @@ void xprt_release(struct rpc_task *task)
 
        if (!(req = task->tk_rqstp))
                return;
+       rpc_count_iostats(task);
        spin_lock_bh(&xprt->transport_lock);
        xprt->ops->release_xprt(xprt, task);
        if (xprt->ops->release_request)
This page took 0.0238 seconds and 5 git commands to generate.