summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-03-07 17:33:15 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-03-07 17:33:15 +0000
commitb07ef6c2db5f1daa76d9813e09b53d98ec9b288f (patch)
tree4a3ad8ff58603abc2be9753e110741f48a4b32b5
parent7ff7c6b9ad5631914ce9d5afa095a48d791691bd (diff)
Notes
-rw-r--r--sys/geom/geom_subr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index 69a972d9448a..ea7691f46bd0 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -272,7 +272,8 @@ g_wither_geom(struct g_geom *gp, int error)
if (!(gp->flags & G_GEOM_WITHER)) {
gp->flags |= G_GEOM_WITHER;
LIST_FOREACH(pp, &gp->provider, provider)
- g_orphan_provider(pp, error);
+ if (!(pp->flags & G_PF_ORPHAN))
+ g_orphan_provider(pp, error);
}
for (pp = LIST_FIRST(&gp->provider); pp != NULL; pp = pp2) {
pp2 = LIST_NEXT(pp, provider);