From: Niu Yawei Date: Thu, 17 Nov 2016 14:07:02 +0000 (-0500) Subject: LU-8197 ptlrpc: set correct rq_timeout for normal replay reply X-Git-Tag: 2.9.51~27 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=db263714fb93fbed2822af775df5fcdb96eab9a2;p=fs%2Flustre-release.git LU-8197 ptlrpc: set correct rq_timeout for normal replay reply Fix from f3ce48ce543791d60326777d95ab2c9c03826965 introduced a regression which set larger rq_timeout of normal replay reply mistakenly, that result in incorrect estimated service time increase during recovery. Signed-off-by: Niu Yawei Change-Id: If62c94f6147e6d6d9ae5954e4847725e9cd66a67 Reviewed-on: https://review.whamcloud.com/23833 Tested-by: Jenkins Reviewed-by: Lai Siyao Reviewed-by: Hongchao Zhang Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/ptlrpc/niobuf.c b/lustre/ptlrpc/niobuf.c index b0f375e..49b9c64 100644 --- a/lustre/ptlrpc/niobuf.c +++ b/lustre/ptlrpc/niobuf.c @@ -507,6 +507,7 @@ static void ptlrpc_at_set_reply(struct ptlrpc_request *req, int flags) __u32 timeout; if (req->rq_export && req->rq_reqmsg != NULL && + (flags & PTLRPC_REPLY_EARLY) && lustre_msg_get_flags(req->rq_reqmsg) & (MSG_REPLAY | MSG_REQ_REPLAY_DONE | MSG_LOCK_REPLAY_DONE)) timeout = cfs_time_current_sec() -