dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Chuck Lever 2007-09-24 15:40:00 -04:00 committed by Trond Myklebust
parent bcf35617a7
commit 1321d8d971
1 changed files with 1 additions and 0 deletions

View 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;