aboutsummaryrefslogtreecommitdiff
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-09-24 15:40:00 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 17:18:19 -0400
commit1321d8d971028e796978f6a48d195c09158b3bcd (patch)
tree6a778f7b7f829d1155a1d62fb04cff732f613a08 /net/sunrpc/xprtsock.c
parentbcf35617a7c3474ad12892dfbb089a572e5c06d2 (diff)
SUNRPC: Fix bytes-per-op accounting for RPC over UDP
NFS performance metrics reported zero bytes sent per op when mounting with UDP. The UDP socket transport wasn't properly counting the number of bytes sent. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index b81494a97a5..e97e4ca43ef 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -587,6 +587,7 @@ static int xs_udp_send_request(struct rpc_task *task)
dprintk("RPC: xs_udp_send_request(%u) = %d\n",
xdr->len - req->rq_bytes_sent, status);
+ task->tk_bytes_sent += status;
if (likely(status >= (int) req->rq_slen))
return 0;