svn commit: r309289 - head/sys/dev/mrsas
Kashyap D Desai
kadesai at FreeBSD.org
Tue Nov 29 12:59:39 UTC 2016
Author: kadesai
Date: Tue Nov 29 12:59:38 2016
New Revision: 309289
URL: https://svnweb.freebsd.org/changeset/base/309289
Log:
Process outstanding reply descriptors from all the reply descriptor post queues before initiating OCR.
Submitted by: Sumit Saxena <sumit.saxena at broadcom.com>
Reviewed by: Kashyap Desai <Kashyap.Desai at broadcom.com>
MFC after: 3 days
Sponsored by: Broadcom Limited/AVAGO Technologies
Modified:
head/sys/dev/mrsas/mrsas.c
Modified: head/sys/dev/mrsas/mrsas.c
==============================================================================
--- head/sys/dev/mrsas/mrsas.c Tue Nov 29 12:58:28 2016 (r309288)
+++ head/sys/dev/mrsas/mrsas.c Tue Nov 29 12:59:38 2016 (r309289)
@@ -3139,6 +3139,11 @@ mrsas_wait_for_outstanding(struct mrsas_
if (fw_state == MFI_STATE_FAULT) {
mrsas_dprint(sc, MRSAS_OCR,
"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;
goto out;
}
More information about the svn-src-head
mailing list