From owner-freebsd-geom@FreeBSD.ORG Tue Sep 18 13:28:55 2012 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C05B21065672; Tue, 18 Sep 2012 13:28:55 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id C6A468FC22; Tue, 18 Sep 2012 13:28:54 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA19972; Tue, 18 Sep 2012 16:28:53 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <50587714.8030300@FreeBSD.org> Date: Tue, 18 Sep 2012 16:28:52 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120830 Thunderbird/15.0 MIME-Version: 1.0 To: Edward Tomasz Napierala X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-geom@FreeBSD.org Subject: g_resize_provider_event and withering geoms X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 13:28:55 -0000 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