]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: qla2xxx: target: Fix term exchange when cmd_sent_to_fw == 1
authorTony Battersby <tonyb@cybernetics.com>
Mon, 10 Nov 2025 15:55:22 +0000 (10:55 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Nov 2025 23:07:50 +0000 (18:07 -0500)
commited382b95f5de9b98668b3d00c7adddfdd4fc5c31
tree2be8959c7b297b54683c5c202203189e9f82c05d
parentc34e373f535e74d3caf1c0d81b6819deb52d37ed
scsi: qla2xxx: target: Fix term exchange when cmd_sent_to_fw == 1

Properly set the nport_handle field of the terminate exchange message.
Previously when this field was not set properly, the term exchange would
fail when cmd_sent_to_fw == 1 but work when cmd_sent_to_fw == 0 (i.e. it
would fail when the HW was actively transferring data or status for the
cmd but work when the HW was idle).  With this change, term exchange
works in any cmd state, which now makes it possible to abort a command
that is locked up in the HW.

Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Link: https://patch.msgid.link/1a221699-969b-4f28-8ea4-395d2f7a7c0a@cybernetics.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c