Release mtx hw_lock before calling pause() in qla_stop() and

qla_error_recovery()

MFC after: 5 days
This commit is contained in:
David C Somayajulu 2017-07-06 05:16:06 +00:00
parent e9c4d0912a
commit 423ec132f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320705

View File

@ -1519,8 +1519,11 @@ qla_stop(qla_host_t *ha)
ha->flags.qla_watchdog_pause = 1;
while (!ha->qla_watchdog_paused)
while (!ha->qla_watchdog_paused) {
QLA_UNLOCK(ha);
qla_mdelay(__func__, 1);
QLA_LOCK(ha);
}
ha->flags.qla_interface_up = 0;
@ -1915,7 +1918,10 @@ qla_error_recovery(void *context, int pending)
if (ha->flags.qla_interface_up) {
ha->hw.imd_compl = 1;
QLA_UNLOCK(ha);
qla_mdelay(__func__, 300);
QLA_LOCK(ha);
ifp->if_drv_flags &= ~(IFF_DRV_OACTIVE | IFF_DRV_RUNNING);