scsi: qla2xxx: restore initiator in dual mode
Subsystems (3)
PATCH 1/1 scsi: qla2xxx: restore initiator in dual mode
In dual mode in case of disabling the target, the whole port goes offline and Initiator is turned off too.
This patch fixes restoring Initiator mode after disabling Target in dual mode.
---
This patchset is intended for scsi-fix.
--- drivers/scsi/qla2xxx/qla_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_init.c +2 -1
@@ -7169,7 +7169,8 @@ qla2x00_abort_isp(scsi_qla_host_t *vha)return 0 ;break ;case QLA2XXX_INI_MODE_DUAL : -if (!qla_dual_mode_enabled (vha)) +if (!qla_dual_mode_enabled (vha) && + !qla_ini_mode_enabled (vha))return 0 ;break ;case QLA2XXX_INI_MODE_ENABLED :
Signature · 1 line
2.25.1
Quoted 34 lines · Dmitry Bogdanov
In dual mode in case of disabling the target, the whole port goes offline and Initiator is turned off too.
This patch fixes restoring Initiator mode after disabling Target in dual mode.
Fixes 0645cb8350cd ("scsi: qla2xxx: Add mode control for each physical port")Signed-off-by Dmitry Bogdanov <[email protected]>---
This patchset is intended for scsi-fix.
---drivers/scsi/qla2xxx/qla_init.c| 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)drivers/scsi/qla2xxx/qla_init.c +2
-1@@ -7169,7 +7169,8 @@ qla2x00_abort_isp(scsi_qla_host_t *vha)return 0 ;break ;case QLA2XXX_INI_MODE_DUAL : -if (!qla_dual_mode_enabled (vha)) +if (!qla_dual_mode_enabled (vha) && + !qla_ini_mode_enabled (vha))return 0 ;break ;case QLA2XXX_INI_MODE_ENABLED :Signature · 1 line
2.25.1
Looks Good.
--
Himanshu Madhani Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 6 lines · Dmitry Bogdanov
In dual mode in case of disabling the target, the whole port goes offline and Initiator is turned off too.
This patch fixes restoring Initiator mode after disabling Target in dual mode.
Applied to 5.15/scsi-fixes, thanks!
[1/1] scsi: qla2xxx: restore initiator in dual mode
https://git.kernel.org/mkp/scsi/c/5f8579038842
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering