Release mtx hw_lock before calling pause() in qla_stop() and
qla_error_recovery() MFC after: 5 days
This commit is contained in:
parent
e9c4d0912a
commit
423ec132f5
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user