[PATCH 0/3] target: fix error propagation and logging

From: shao.mingyin

Date: Sun Nov 08 2026 - 22:40:03 EST


This series fixes error propagation and logging in the target core.
All three patches are independent and can be applied on their own or
as any subset.

Patch 1 preserves the error returned by the fabric make_np callback instead
of replacing every failure with -EINVAL. This one is a functional change,
so it carries a Fixes tag.

Patch 2 prints ref_task_tag as unsigned; the field is a u64.

Patch 3 makes the LUN_RESET drain message match the condition it reports:
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.

Shao Mingyin (3):
target: configfs: preserve the error from fabric_make_np()
target: tmr: print ref_task_tag as unsigned
target: tmr: fix the inverted drain log message

drivers/target/target_core_fabric_configfs.c | 4 +++-
drivers/target/target_core_tmr.c | 6 +++---
2 files changed, 6 insertions(+), 4 deletions(-)

---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b