]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: qla2xxx: Fix initiator mode with qlini_mode=exclusive
authorTony Battersby <tonyb@cybernetics.com>
Mon, 10 Nov 2025 15:48:45 +0000 (10:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:47 +0000 (13:09 +0100)
commit8416236b992f9eca63713696afe7a4b1ca6f7305
tree50d2f5008c2d16c50e0b313ceb2fb26dece69744
parent80e898a3c6143def6175cb85e49e8e98e7d1bd18
scsi: qla2xxx: Fix initiator mode with qlini_mode=exclusive

[ Upstream commit 8f58fc64d559b5fda1b0a5e2a71422be61e79ab9 ]

When given the module parameter qlini_mode=exclusive, qla2xxx in
initiator mode is initially unable to successfully send SCSI commands to
devices it finds while scanning, resulting in an escalating series of
resets until an adapter reset clears the issue.  Fix by checking the
active mode instead of the module parameter.

Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Link: https://patch.msgid.link/1715ec14-ba9a-45dc-9cf2-d41aa6b81b5e@cybernetics.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qla2xxx/qla_os.c