From d9233853ae5a1c0a1a4fe150275df2c3d660ebb7 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Wed, 8 Apr 2015 16:05:34 +0200 Subject: [PATCH] LU-6356 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 Change-Id: I17986905f4d67323cd7e0644ab25f73dc00f23fb Reviewed-on: http://review.whamcloud.com/14404 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Dmitry Eremin Reviewed-by: Jeremy Filizetti Reviewed-by: Andrew Perepechko Reviewed-by: Oleg Drokin --- lustre/ptlrpc/client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index d8773ca..091cbcb 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -1247,6 +1247,9 @@ static int after_reply(struct ptlrpc_request *req) RETURN(0); } + do_gettimeofday(&work_start); + timediff = cfs_timeval_sub(&work_start, &req->rq_sent_tv, NULL); + /* * NB Until this point, the whole of the incoming message, * including buflens, status etc is in the sender's byte order. @@ -1301,8 +1304,6 @@ static int after_reply(struct ptlrpc_request *req) RETURN(0); } - do_gettimeofday(&work_start); - timediff = cfs_timeval_sub(&work_start, &req->rq_sent_tv, NULL); if (obd->obd_svc_stats != NULL) { lprocfs_counter_add(obd->obd_svc_stats, PTLRPC_REQWAIT_CNTR, timediff); -- 1.8.3.1