Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2012 16:28:52 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Edward Tomasz Napierala <trasz@FreeBSD.org>
Cc:        freebsd-geom@FreeBSD.org
Subject:   g_resize_provider_event and withering geoms
Message-ID:  <50587714.8030300@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50587714.8030300>