forked from Minki/linux
[SCSI] qla4xxx: do not reset hba if ql4xdontresethba is set
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Signed-off-by: Ravi Anand <ravi.anand@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
d56a1f7b39
commit
3930b8c1f3
@ -711,15 +711,17 @@ void qla4_8xxx_watchdog(struct scsi_qla_host *ha)
|
|||||||
test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags))) {
|
test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags))) {
|
||||||
if (dev_state == QLA82XX_DEV_NEED_RESET &&
|
if (dev_state == QLA82XX_DEV_NEED_RESET &&
|
||||||
!test_bit(DPC_RESET_HA, &ha->dpc_flags)) {
|
!test_bit(DPC_RESET_HA, &ha->dpc_flags)) {
|
||||||
printk("scsi%ld: %s: HW State: NEED RESET!\n",
|
if (!ql4xdontresethba) {
|
||||||
ha->host_no, __func__);
|
ql4_printk(KERN_INFO, ha, "%s: HW State: "
|
||||||
set_bit(DPC_RESET_HA, &ha->dpc_flags);
|
"NEED RESET!\n", __func__);
|
||||||
qla4xxx_wake_dpc(ha);
|
set_bit(DPC_RESET_HA, &ha->dpc_flags);
|
||||||
qla4xxx_mailbox_premature_completion(ha);
|
qla4xxx_wake_dpc(ha);
|
||||||
|
qla4xxx_mailbox_premature_completion(ha);
|
||||||
|
}
|
||||||
} else if (dev_state == QLA82XX_DEV_NEED_QUIESCENT &&
|
} else if (dev_state == QLA82XX_DEV_NEED_QUIESCENT &&
|
||||||
!test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags)) {
|
!test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags)) {
|
||||||
printk("scsi%ld: %s: HW State: NEED QUIES!\n",
|
ql4_printk(KERN_INFO, ha, "%s: HW State: NEED QUIES!\n",
|
||||||
ha->host_no, __func__);
|
__func__);
|
||||||
set_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags);
|
set_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags);
|
||||||
qla4xxx_wake_dpc(ha);
|
qla4xxx_wake_dpc(ha);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user