Commit 3f0e58bc authored by adam radford's avatar adam radford Committed by James Bottomley

[SCSI] megaraid_sas: Clear FUSION_IN_RESET before enabling interrupts

Signed-off-by: default avatarAdam Radford <aradford@gmail.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 6497b247
...@@ -2179,6 +2179,8 @@ int megasas_reset_fusion(struct Scsi_Host *shost) ...@@ -2179,6 +2179,8 @@ int megasas_reset_fusion(struct Scsi_Host *shost)
continue; continue;
} }
clear_bit(MEGASAS_FUSION_IN_RESET,
&instance->reset_flags);
instance->instancet->enable_intr(instance->reg_set); instance->instancet->enable_intr(instance->reg_set);
instance->adprecovery = MEGASAS_HBA_OPERATIONAL; instance->adprecovery = MEGASAS_HBA_OPERATIONAL;
...@@ -2240,6 +2242,7 @@ int megasas_reset_fusion(struct Scsi_Host *shost) ...@@ -2240,6 +2242,7 @@ int megasas_reset_fusion(struct Scsi_Host *shost)
megaraid_sas_kill_hba(instance); megaraid_sas_kill_hba(instance);
retval = FAILED; retval = FAILED;
} else { } else {
clear_bit(MEGASAS_FUSION_IN_RESET, &instance->reset_flags);
instance->instancet->enable_intr(instance->reg_set); instance->instancet->enable_intr(instance->reg_set);
instance->adprecovery = MEGASAS_HBA_OPERATIONAL; instance->adprecovery = MEGASAS_HBA_OPERATIONAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment