diff options
Diffstat (limited to 'net/sunrpc/stats.c')
-rw-r--r-- | net/sunrpc/stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/stats.c b/net/sunrpc/stats.c index aacd95f0dce5..ea1046f3f9a3 100644 --- a/net/sunrpc/stats.c +++ b/net/sunrpc/stats.c | |||
@@ -156,13 +156,13 @@ void rpc_count_iostats(struct rpc_task *task) | |||
156 | op_metrics->om_ntrans += req->rq_ntrans; | 156 | op_metrics->om_ntrans += req->rq_ntrans; |
157 | op_metrics->om_timeouts += task->tk_timeouts; | 157 | op_metrics->om_timeouts += task->tk_timeouts; |
158 | 158 | ||
159 | op_metrics->om_bytes_sent += task->tk_bytes_sent; | 159 | op_metrics->om_bytes_sent += req->rq_xmit_bytes_sent; |
160 | op_metrics->om_bytes_recv += req->rq_reply_bytes_recvd; | 160 | op_metrics->om_bytes_recv += req->rq_reply_bytes_recvd; |
161 | 161 | ||
162 | delta = ktime_sub(req->rq_xtime, task->tk_start); | 162 | delta = ktime_sub(req->rq_xtime, task->tk_start); |
163 | op_metrics->om_queue = ktime_add(op_metrics->om_queue, delta); | 163 | op_metrics->om_queue = ktime_add(op_metrics->om_queue, delta); |
164 | 164 | ||
165 | op_metrics->om_rtt = ktime_add(op_metrics->om_rtt, task->tk_rtt); | 165 | op_metrics->om_rtt = ktime_add(op_metrics->om_rtt, req->rq_rtt); |
166 | 166 | ||
167 | delta = ktime_sub(ktime_get(), task->tk_start); | 167 | delta = ktime_sub(ktime_get(), task->tk_start); |
168 | op_metrics->om_execute = ktime_add(op_metrics->om_execute, delta); | 168 | op_metrics->om_execute = ktime_add(op_metrics->om_execute, delta); |