Skip to content

Commit d56a1f7

Browse files
Lalit ChandivadeJames Bottomley
authored andcommitted
[SCSI] qla4xxx: do not check for fw hung if reset retry is in progress
Signed-off-by: Vikas Chaudhary <[email protected]> Signed-off-by: Lalit Chandivade <[email protected]> Signed-off-by: Ravi Anand <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent e128271 commit d56a1f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/scsi/qla4xxx/ql4_os.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,9 @@ void qla4_8xxx_watchdog(struct scsi_qla_host *ha)
706706
dev_state = qla4_8xxx_rd_32(ha, QLA82XX_CRB_DEV_STATE);
707707

708708
/* don't poll if reset is going on */
709-
if (!test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags)) {
709+
if (!(test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) ||
710+
test_bit(DPC_RESET_HA, &ha->dpc_flags) ||
711+
test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags))) {
710712
if (dev_state == QLA82XX_DEV_NEED_RESET &&
711713
!test_bit(DPC_RESET_HA, &ha->dpc_flags)) {
712714
printk("scsi%ld: %s: HW State: NEED RESET!\n",

0 commit comments

Comments
 (0)