From 89ff7dd43bd271933125dfde67170a031908a16c Mon Sep 17 00:00:00 2001 From: Alexander Zarochentsev Date: Fri, 15 Oct 2021 21:27:29 +0300 Subject: [PATCH] LU-15115 ptlrpc: recalc timer on EINPROGRESS reply ptlrpcd doesn't recalculate wait queue timer after getting -EINPROGRESS reply. It may delay request resend till its timing out. Lustre-change: https://review.whamcloud.com/45266 Lustre-commit: 9a5bace55a5ddb8a928af2de1b199e968f3fbecd HPE-bug-id: LUS-10366 Signed-off-by: Alexander Zarochentsev Change-Id: Idc76c688a0f7ff8e110446fd1fe13dd83f636f3b Reviewed-by: Andriy Skulysh Reviewed-by: Alexander Boyko Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49513 Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo --- lustre/ptlrpc/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index e0eacc7..d6db0b9 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -2160,8 +2160,10 @@ int ptlrpc_check_set(const struct lu_env *env, struct ptlrpc_request_set *set) continue; req->rq_status = after_reply(req); - if (req->rq_resend) + if (req->rq_resend) { + force_timer_recalc = 1; continue; + } /* * If there is no bulk associated with this request, -- 1.8.3.1