[PATCH 3/3] target: tmr: fix the inverted drain log message

From: shao.mingyin

Date: Sun Nov 08 2026 - 22:41:27 EST


From: Shao Mingyin <shao.mingyin@xxxxxxxxxx>

The message is printed when __target_check_io_state() returned false,
i.e. when the command is already complete or kref_get_unless_zero()
failed, but it says "non-zero". Make the message match the condition
and switch the unleveled printk() to pr_info().

No functional change.

Signed-off-by: Shao Mingyin <shao.mingyin@xxxxxxxxxx>
---
diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c
index 0b719f3f9cdf..2ba84773466b 100644
--- a/drivers/target/target_core_tmr.c
+++ b/drivers/target/target_core_tmr.c
@@ -222,7 +222,7 @@ static void core_tmr_drain_tmr_list(
spin_unlock(&sess->sess_cmd_lock);

if (!rc) {
- printk("LUN_RESET TMR: non-zero kref_get_unless_zero\n");
+ pr_info("LUN_RESET TMR: cmd complete or kref_get_unless_zero failed\n");
continue;
}

--
2.27.0