Don't panic on providers already withered when we wither a geom.

This commit is contained in:
Poul-Henning Kamp 2004-03-07 17:33:15 +00:00
parent 7ff7c6b9ad
commit b07ef6c2db

View File

@ -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);