g_resize_provider_event and withering geoms

Andriy Gapon avg at FreeBSD.org
Tue Sep 18 13:28:55 UTC 2012


Edward,

I think that the resize event handler should not skip (re-)taste for withering
geoms.  What do you think?

diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index 5342aba..56807fe 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -680,6 +680,7 @@ g_resize_provider_event(void *arg, int flag)
 			continue;
 		LIST_FOREACH(cp, &pp->consumers, consumers)
 			if (cp->geom->class == mp &&
+			    (cp->geom->flags & G_GEOM_WITHER) == 0 &&
 			    (cp->flags & G_CF_ORPHAN) == 0)
 				break;
 		if (cp != NULL)

-- 
Andriy Gapon


More information about the freebsd-geom mailing list