From: Alexander Zarochentsev Date: Fri, 15 Oct 2021 18:27:29 +0000 (+0300) Subject: LU-15115 ptlrpc: recalc timer on EINPROGRESS reply X-Git-Tag: 2.14.56~145 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=9a5bace55a5ddb8a928af2de1b199e968f3fbecd 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. HPE-bug-id: LUS-10366 Signed-off-by: Alexander Zarochentsev Change-Id: Idc76c688a0f7ff8e110446fd1fe13dd83f636f3b Reviewed-on: https://review.whamcloud.com/45266 Tested-by: jenkins Reviewed-by: Andriy Skulysh Tested-by: Maloo Reviewed-by: Alexander Boyko Reviewed-by: Oleg Drokin --- diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 04fe734..c08850f 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -2129,8 +2129,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,