Whamcloud - gitweb
LU-15847 target: report multiple transno to debug log
authorMikhail Pershin <mpershin@whamcloud.com>
Wed, 26 Oct 2022 08:17:11 +0000 (11:17 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 10 Nov 2022 07:08:37 +0000 (07:08 +0000)
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 <mpershin@whamcloud.com>
Change-Id: If9b47dfedcaf67487954189e8a75d2029a502469
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49027
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/target/tgt_main.c

index ec53b8c..7009020 100644 (file)
@@ -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;