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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Nov 2025 23:07:50 +0000 (18:07 -0500)
commit8f58fc64d559b5fda1b0a5e2a71422be61e79ab9
treee5e2466b24c1f76de949034e24c72a0f7ca3748b
parentb57fbc88715b6d18f379463f48a15b560b087ffe
scsi: qla2xxx: Fix initiator mode with qlini_mode=exclusive

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>
drivers/scsi/qla2xxx/qla_os.c