From d13cca56a5ae2ad44d8083025e37263e408b8f62 Mon Sep 17 00:00:00 2001 From: Yang Sheng Date: Mon, 19 Sep 2022 13:46:27 +0800 Subject: [PATCH] LU-16166 ptlrpc: lower the message level in no resend case Don't report the wrong generation as a error message in rq_no_resend case. Signed-off-by: Yang Sheng Change-Id: I534cadc916fcd1eb6840439b6507e646d0e5d974 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48585 Reviewed-by: Emoly Liu Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin Tested-by: jenkins Tested-by: Maloo --- lustre/ptlrpc/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index f1fe6dd..0581ba6 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -1270,7 +1270,8 @@ static int ptlrpc_import_delay_req(struct obd_import *imp, DEBUG_REQ(D_NET, req, "IMP_INVALID"); *status = -ESHUTDOWN; /* b=12940 */ } else if (req->rq_import_generation != imp->imp_generation) { - DEBUG_REQ(D_ERROR, req, "req wrong generation:"); + DEBUG_REQ(req->rq_no_resend ? D_INFO : D_ERROR, + req, "req wrong generation:"); *status = -EIO; } else if (req->rq_send_state != imp->imp_state) { /* invalidate in progress - any requests should be drop */ -- 1.8.3.1