svn commit: r321501 - stable/9/sys/dev/qlxgbe
David C Somayajulu
davidcs at FreeBSD.org
Wed Jul 26 01:46:27 UTC 2017
Author: davidcs
Date: Wed Jul 26 01:46:25 2017
New Revision: 321501
URL: https://svnweb.freebsd.org/changeset/base/321501
Log:
MFC 320705
Release mtx hw_lock before calling pause() in qla_stop() and
qla_error_recovery()
Modified:
stable/9/sys/dev/qlxgbe/ql_os.c
Directory Properties:
stable/9/ (props changed)
stable/9/sys/ (props changed)
Modified: stable/9/sys/dev/qlxgbe/ql_os.c
==============================================================================
--- stable/9/sys/dev/qlxgbe/ql_os.c Wed Jul 26 01:43:44 2017 (r321500)
+++ stable/9/sys/dev/qlxgbe/ql_os.c Wed Jul 26 01:46:25 2017 (r321501)
@@ -1540,8 +1540,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;
@@ -1936,7 +1939,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);
More information about the svn-src-stable-9
mailing list