Process outstanding reply descriptors from all the reply descriptor post queues before initiating OCR.
Submitted by: Sumit Saxena <sumit.saxena@broadcom.com> Reviewed by: Kashyap Desai <Kashyap.Desai@broadcom.com> MFC after: 3 days Sponsored by: Broadcom Limited/AVAGO Technologies
This commit is contained in:
parent
c2a20ff95a
commit
e2e8afb12c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309289
@ -3139,6 +3139,11 @@ mrsas_wait_for_outstanding(struct mrsas_softc *sc, u_int8_t check_reason)
|
|||||||
if (fw_state == MFI_STATE_FAULT) {
|
if (fw_state == MFI_STATE_FAULT) {
|
||||||
mrsas_dprint(sc, MRSAS_OCR,
|
mrsas_dprint(sc, MRSAS_OCR,
|
||||||
"Found FW in FAULT state, will reset adapter.\n");
|
"Found FW in FAULT state, will reset adapter.\n");
|
||||||
|
count = sc->msix_vectors > 0 ? sc->msix_vectors : 1;
|
||||||
|
mtx_unlock(&sc->sim_lock);
|
||||||
|
for (MSIxIndex = 0; MSIxIndex < count; MSIxIndex++)
|
||||||
|
mrsas_complete_cmd(sc, MSIxIndex);
|
||||||
|
mtx_lock(&sc->sim_lock);
|
||||||
retval = 1;
|
retval = 1;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user