Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F97643201
D42341.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
577 B
Referenced Files
None
Subscribers
None
D42341.diff
View Options
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
@@ -909,13 +909,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
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 1, 1:31 PM (21 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13253256
Default Alt Text
D42341.diff (577 B)
Attached To
Mode
D42341: ctl_ha: don't shutdown threads if scheduler is stopped
Attached
Detach File
Event Timeline
Log In to Comment