diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-05-13 12:51:49 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-05-14 15:09:36 -0400 |
commit | d60dbb20a74c2cfa142be0a34dac3c6547ea086c (patch) | |
tree | 7af95739f8fbbef11f490b5b58bf639dbbe8a181 /net/sunrpc/xprtsock.c | |
parent | 9c7e7e23371e629dbb3b341610a418cdf1c19d91 (diff) |
SUNRPC: Move the task->tk_bytes_sent and tk_rtt to struct rpc_rqst
It seems strange to maintain stats for bytes_sent in one structure, and
bytes received in another. Try to assemble all the RPC request-related
stats in struct rpc_rqst
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index beefa7a3a90e..02fc7f04dd17 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -528,7 +528,7 @@ static int xs_udp_send_request(struct rpc_task *task) | |||
528 | xdr->len - req->rq_bytes_sent, status); | 528 | xdr->len - req->rq_bytes_sent, status); |
529 | 529 | ||
530 | if (status >= 0) { | 530 | if (status >= 0) { |
531 | task->tk_bytes_sent += status; | 531 | req->rq_xmit_bytes_sent += status; |
532 | if (status >= req->rq_slen) | 532 | if (status >= req->rq_slen) |
533 | return 0; | 533 | return 0; |
534 | /* Still some bytes left; set up for a retry later. */ | 534 | /* Still some bytes left; set up for a retry later. */ |
@@ -624,7 +624,7 @@ static int xs_tcp_send_request(struct rpc_task *task) | |||
624 | /* If we've sent the entire packet, immediately | 624 | /* If we've sent the entire packet, immediately |
625 | * reset the count of bytes sent. */ | 625 | * reset the count of bytes sent. */ |
626 | req->rq_bytes_sent += status; | 626 | req->rq_bytes_sent += status; |
627 | task->tk_bytes_sent += status; | 627 | req->rq_xmit_bytes_sent += status; |
628 | if (likely(req->rq_bytes_sent >= req->rq_slen)) { | 628 | if (likely(req->rq_bytes_sent >= req->rq_slen)) { |
629 | req->rq_bytes_sent = 0; | 629 | req->rq_bytes_sent = 0; |
630 | return 0; | 630 | return 0; |