Whamcloud - gitweb
LU-15112 ptlrpc: make rq_replied flag always correct 71/45871/3
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Wed, 15 Dec 2021 12:31:47 +0000 (15:31 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Jan 2022 21:59:55 +0000 (21:59 +0000)
rq_replied flag is cleared at ptl_rpc_send() only,
so state of the flag may be incorrect for rpcs which
are timed out but have have been never sent.

HPE-bug-id: LUS-8752
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: I0de996a4d775b8f1a1a6b27ff38d21645694f868
Reviewed-on: https://review.whamcloud.com/45871
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/ptlrpc_internal.h

index c699c28..3844760 100644 (file)
@@ -378,6 +378,7 @@ static inline void ptlrpc_cli_req_init(struct ptlrpc_request *req)
 
        req->rq_receiving_reply = 0;
        req->rq_req_unlinked = req->rq_reply_unlinked = 1;
+       req->rq_replied = 0;
 
        INIT_LIST_HEAD(&cr->cr_set_chain);
        INIT_LIST_HEAD(&cr->cr_ctx_chain);