staging: lustre: ptlrpc: dont take unwrap in req_waittime calculation
Do not take unwrap time in req_waittime calculation on client part as decryption is not related to request service time. Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6356 Reviewed-on: http://review.whamcloud.com/14404 Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Jeremy Filizetti <jeremy.filizetti@gmail.com> Reviewed-by: Andrew Perepechko <andrew.perepechko@seagate.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
8a4939e5fa
Коммит
0bce7b932a
|
@ -1206,6 +1206,10 @@ static int after_reply(struct ptlrpc_request *req)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ktime_get_real_ts64(&work_start);
|
||||
timediff = (work_start.tv_sec - req->rq_sent_tv.tv_sec) * USEC_PER_SEC +
|
||||
(work_start.tv_nsec - req->rq_sent_tv.tv_nsec) /
|
||||
NSEC_PER_USEC;
|
||||
/*
|
||||
* NB Until this point, the whole of the incoming message,
|
||||
* including buflens, status etc is in the sender's byte order.
|
||||
|
@ -1258,10 +1262,6 @@ static int after_reply(struct ptlrpc_request *req)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ktime_get_real_ts64(&work_start);
|
||||
timediff = (work_start.tv_sec - req->rq_sent_tv.tv_sec) * USEC_PER_SEC +
|
||||
(work_start.tv_nsec - req->rq_sent_tv.tv_nsec) /
|
||||
NSEC_PER_USEC;
|
||||
if (obd->obd_svc_stats) {
|
||||
lprocfs_counter_add(obd->obd_svc_stats, PTLRPC_REQWAIT_CNTR,
|
||||
timediff);
|
||||
|
|
Загрузка…
Ссылка в новой задаче