From: Mikhail Pershin Date: Wed, 26 Oct 2022 08:17:11 +0000 (+0300) Subject: LU-15847 target: report multiple transno to debug log X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9d8a68c56f8f9075fd4f91b772b26f84cbbcc9bc;p=fs%2Flustre-release.git LU-15847 target: report multiple transno to debug log Don't report multiple transaction cases to console but make it as debug message. Lustre-change: https://review.whamcloud.com/49027 Lustre-commit: TBD (1550da71c46f65b72951c0348f32835ed7f617fb) Fixes: 4e2e8fd2fc0a ("LU-15847 tgt: reply always with the latest assigned transno") Test-Parameters: trivial Signed-off-by: Mikhail Pershin Change-Id: If9b47dfedcaf67487954189e8a75d2029a502469 Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49027 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/target/tgt_main.c b/lustre/target/tgt_main.c index ec53b8c..7009020 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;