Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 scsi-fixes 0/3] scsi: target: iscsi: SNACK Reject and range fixes
@ 2026-12-02 16:57 Andrew Stellman
  2026-12-02 16:57 ` [PATCH v2 scsi-fixes 1/3] scsi: target: iscsi: Don't drop live command refs on SNACK Reject Andrew Stellman
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andrew Stellman @ 2026-12-02 16:57 UTC (permalink / raw)
  To: Martin K. Petersen
  Cc: Mike Christie, Dmitry Bogdanov, Ziheng Wei, target-devel,
	linux-scsi

From: Andrew Stellman <astellman@stellman-greene.com>

Patch 1 stops the Data and R2T SNACK handlers from rejecting the live
SCSI command and keeps the connection up. Patch 2 checks those ranges
without u32 wrap. Patch 3 limits Status SNACKs to StatSNs that were
sent and not yet acknowledged.

The series applies to Linux 7.4-rc5 after this two-patch series:
https://lore.kernel.org/r/20261202164950.49838-1-bugs@stellman-greene.com

Ziheng Wei's patch also holds cmd_lock while queueing in
iscsit_handle_status_snack(), so it overlaps with 3/3:
https://lore.kernel.org/all/20261130103511.1384218-1-zihengw03@163.com/

v2: 3/3 is rewritten after the Sashiko review of v1 3/3.
v1: https://lore.kernel.org/r/20261130062812.56660-1-bugs@stellman-greene.com

Andrew Stellman (3):
  scsi: target: iscsi: Don't drop live command refs on SNACK Reject
  scsi: target: iscsi: Check Data and R2T SNACK ranges without wrap
  scsi: target: iscsi: Bound Status SNACKs to unacknowledged StatSNs

 drivers/target/iscsi/iscsi_target.c      | 24 ++++++--
 drivers/target/iscsi/iscsi_target.h      |  2 +
 drivers/target/iscsi/iscsi_target_erl1.c | 74 +++++++++++++-----------
 drivers/target/iscsi/iscsi_target_erl1.h |  5 +-
 drivers/target/iscsi/iscsi_target_nego.c |  2 +
 5 files changed, 66 insertions(+), 41 deletions(-)

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
-- 
2.53.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-02 17:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 16:57 [PATCH v2 scsi-fixes 0/3] scsi: target: iscsi: SNACK Reject and range fixes Andrew Stellman
2026-12-02 16:57 ` [PATCH v2 scsi-fixes 1/3] scsi: target: iscsi: Don't drop live command refs on SNACK Reject Andrew Stellman
2026-12-02 17:21   ` sashiko-bot
2026-12-02 16:57 ` [PATCH v2 scsi-fixes 2/3] scsi: target: iscsi: Check Data and R2T SNACK ranges without wrap Andrew Stellman
2026-12-02 16:57 ` [PATCH v2 scsi-fixes 3/3] scsi: target: iscsi: Bound Status SNACKs to unacknowledged StatSNs Andrew Stellman
2026-12-02 17:15   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox