From: Alex Zhuravlev Date: Fri, 14 Jan 2022 05:02:44 +0000 (+0300) Subject: LU-15190 ptlrpc: fix duplication check X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e87fa8b4eb277f6c5cf19c6415d69aebd75d2d1a;p=fs%2Flustre-release.git LU-15190 ptlrpc: fix duplication check 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 Change-Id: I4ba1600341d916871f66aceb4d6a1043dd015e55 Reviewed-on: https://review.whamcloud.com/46116 Tested-by: jenkins Reviewed-by: Mike Pershin Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/ptlrpc/service.c b/lustre/ptlrpc/service.c index f22bb46..5c96ff5 100644 --- a/lustre/ptlrpc/service.c +++ b/lustre/ptlrpc/service.c @@ -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; /*