]> err.no Git - linux-2.6/commitdiff
SUNRPC: Fix bytes-per-op accounting for RPC over UDP
authorChuck Lever <chuck.lever@oracle.com>
Mon, 24 Sep 2007 19:40:00 +0000 (15:40 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:18:19 +0000 (17:18 -0400)
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>
net/sunrpc/xprtsock.c

index b81494a97a5eee791474fcc5d8d180d54bbaee07..e97e4ca43ef31e79df21257da74f22a480e0053f 100644 (file)
@@ -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;