Page MenuHomeFreeBSD

D24697.diff
No OneTemporary

D24697.diff

Index: head/sys/geom/eli/g_eli.c
===================================================================
--- head/sys/geom/eli/g_eli.c
+++ head/sys/geom/eli/g_eli.c
@@ -1416,11 +1416,13 @@
continue;
pp = LIST_FIRST(&gp->provider);
KASSERT(pp != NULL, ("No provider? gp=%p (%s)", gp, gp->name));
- if (pp->acr + pp->acw + pp->ace == 0)
- error = g_eli_destroy(sc, TRUE);
- else {
+ if (pp->acr != 0 || pp->acw != 0 || pp->ace != 0 ||
+ SCHEDULER_STOPPED())
+ {
sc->sc_flags |= G_ELI_FLAG_RW_DETACH;
gp->access = g_eli_access;
+ } else {
+ error = g_eli_destroy(sc, TRUE);
}
}
g_topology_unlock();

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 12, 11:06 PM (3 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15773647
Default Alt Text
D24697.diff (631 B)

Event Timeline