Whamcloud - gitweb
LU-15115 ptlrpc: recalc timer on EINPROGRESS reply 66/45266/2
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Fri, 15 Oct 2021 18:27:29 +0000 (21:27 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 Oct 2021 00:35:25 +0000 (00:35 +0000)
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 <alexander.zarochentsev@hpe.com>
Change-Id: Idc76c688a0f7ff8e110446fd1fe13dd83f636f3b
Reviewed-on: https://review.whamcloud.com/45266
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andriy Skulysh <andriy.skulysh@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/client.c

index 04fe734..c08850f 100644 (file)
@@ -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,