From 122644ae1916601566946e71152e17fdb540a15e Mon Sep 17 00:00:00 2001 From: Mikhail Pershin Date: Wed, 26 Oct 2022 11:17:11 +0300 Subject: [PATCH] LU-15847 target: report multiple transno to debug log Don't report multiple transaction cases to console but make it as debug message. Fixes: 4e2e8fd2fc0a ("LU-15847 tgt: reply always with the latest assigned transno") Signed-off-by: Mikhail Pershin Change-Id: If9b47dfedcaf67487954189e8a75d2029a502469 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48958 Reviewed-by: Alex Zhuravlev Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo --- lustre/target/tgt_main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lustre/target/tgt_main.c b/lustre/target/tgt_main.c index 7a293ba..5c7342d 100644 --- a/lustre/target/tgt_main.c +++ b/lustre/target/tgt_main.c @@ -791,8 +791,12 @@ static void tgt_ses_key_exit(const struct lu_context *ctx, { struct tgt_session_info *tsi = data; - if (tsi->tsi_has_trans > 1) - CDEBUG(D_WARNING, "total %i transactions per RPC\n", + /** + * Check cases when that is true to add proper + * handling and set mult_trans + */ + if (!tsi->tsi_mult_trans && tsi->tsi_has_trans > 1) + CDEBUG(D_HA, "total %i transactions per RPC\n", tsi->tsi_has_trans); tsi->tsi_has_trans = 0; tsi->tsi_mult_trans = false; -- 1.8.3.1