Skip to content

Commit 3930b8c

Browse files
Vikas ChaudharyJames Bottomley
authored andcommitted
[SCSI] qla4xxx: do not reset hba if ql4xdontresethba is set
Signed-off-by: Vikas Chaudhary <[email protected]> Signed-off-by: Ravi Anand <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent d56a1f7 commit 3930b8c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

drivers/scsi/qla4xxx/ql4_os.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -711,15 +711,17 @@ void qla4_8xxx_watchdog(struct scsi_qla_host *ha)
711711
test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags))) {
712712
if (dev_state == QLA82XX_DEV_NEED_RESET &&
713713
!test_bit(DPC_RESET_HA, &ha->dpc_flags)) {
714-
printk("scsi%ld: %s: HW State: NEED RESET!\n",
715-
ha->host_no, __func__);
716-
set_bit(DPC_RESET_HA, &ha->dpc_flags);
717-
qla4xxx_wake_dpc(ha);
718-
qla4xxx_mailbox_premature_completion(ha);
714+
if (!ql4xdontresethba) {
715+
ql4_printk(KERN_INFO, ha, "%s: HW State: "
716+
"NEED RESET!\n", __func__);
717+
set_bit(DPC_RESET_HA, &ha->dpc_flags);
718+
qla4xxx_wake_dpc(ha);
719+
qla4xxx_mailbox_premature_completion(ha);
720+
}
719721
} else if (dev_state == QLA82XX_DEV_NEED_QUIESCENT &&
720722
!test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags)) {
721-
printk("scsi%ld: %s: HW State: NEED QUIES!\n",
722-
ha->host_no, __func__);
723+
ql4_printk(KERN_INFO, ha, "%s: HW State: NEED QUIES!\n",
724+
__func__);
723725
set_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags);
724726
qla4xxx_wake_dpc(ha);
725727
} else {

0 commit comments

Comments
 (0)