Whamcloud - gitweb
LU-15847 target: report multiple transno to debug log 58/48958/2
authorMikhail Pershin <mpershin@whamcloud.com>
Wed, 26 Oct 2022 08:17:11 +0000 (11:17 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Nov 2022 08:50:45 +0000 (08:50 +0000)
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 <mpershin@whamcloud.com>
Change-Id: If9b47dfedcaf67487954189e8a75d2029a502469
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48958
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/target/tgt_main.c

index 7a293ba..5c7342d 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;