Page MenuHomeFreeBSD

D42341.id129263.diff
No OneTemporary

D42341.id129263.diff

diff --git a/sys/cam/ctl/ctl_ha.c b/sys/cam/ctl/ctl_ha.c
--- a/sys/cam/ctl/ctl_ha.c
+++ b/sys/cam/ctl/ctl_ha.c
@@ -910,13 +910,16 @@
{
struct ha_softc *softc = &ha_softc;
+ if (SCHEDULER_STOPPED())
+ return;
+
/* Disconnect and shutdown threads. */
mtx_lock(&softc->ha_lock);
if (softc->ha_shutdown < 2) {
softc->ha_shutdown = 1;
softc->ha_wakeup = 1;
wakeup(&softc->ha_wakeup);
- while (softc->ha_shutdown < 2 && !SCHEDULER_STOPPED()) {
+ while (softc->ha_shutdown < 2) {
msleep(&softc->ha_wakeup, &softc->ha_lock, 0,
"shutdown", hz);
}

File Metadata

Mime Type
text/plain
Expires
Tue, May 19, 1:46 AM (14 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33284220
Default Alt Text
D42341.id129263.diff (577 B)

Event Timeline