Whamcloud - gitweb
LU-15190 ptlrpc: fix duplication check
authorAlex Zhuravlev <bzzz@whamcloud.com>
Fri, 14 Jan 2022 05:02:44 +0000 (08:02 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 18 Jan 2022 06:28:05 +0000 (06:28 +0000)
ptlrpc_server_check_for_resend() skips duplication check if
current exp_rpc_count == 0 which is wrong as exp_rpc_count
is incremented for RPCs in progress.

Lustre-change: https://review.whamcloud.com/45445
Lustre-commit: bb83a8af59d30b3f9e6de171eca962316ab7f6f4

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I4ba1600341d916871f66aceb4d6a1043dd015e55
Reviewed-on: https://review.whamcloud.com/46116
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ptlrpc/service.c

index f22bb46..5c96ff5 100644 (file)
@@ -1642,8 +1642,7 @@ ptlrpc_server_check_resend_in_progress(struct ptlrpc_request *req)
 {
        struct ptlrpc_request *tmp = NULL;
 
-       if (!(lustre_msg_get_flags(req->rq_reqmsg) & MSG_RESENT) ||
-           (atomic_read(&req->rq_export->exp_rpc_count) == 0))
+       if (!(lustre_msg_get_flags(req->rq_reqmsg) & MSG_RESENT))
                return NULL;
 
        /*