Skip to content

Commit

Permalink
SUNRPC: Fix bytes-per-op accounting for RPC over UDP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Oct 9, 2007
1 parent bcf3561 commit 1321d8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/sunrpc/xprtsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1321d8d

Please sign in to comment.