From owner-freebsd-geom@FreeBSD.ORG Wed Dec 20 16:05:15 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 4732916A40F for ; Wed, 20 Dec 2006 16:05:15 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1977A43CA3 for ; Wed, 20 Dec 2006 16:03:07 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id CD18746DA5; Wed, 20 Dec 2006 17:02:47 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 67F3B4569A; Wed, 20 Dec 2006 17:02:43 +0100 (CET) Date: Wed, 20 Dec 2006 17:02:29 +0100 From: Pawel Jakub Dawidek To: Max Laier Message-ID: <20061220160229.GE88356@garage.freebsd.pl> References: <200612161537.21348.max@love2party.net> <20061216170910.GC10541@garage.freebsd.pl> <200612190241.13265.max@love2party.net> <20061220155736.GD88356@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XuV1QlJbYrcVoo+x" Content-Disposition: inline In-Reply-To: <20061220155736.GD88356@garage.freebsd.pl> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: Poul-Henning Kamp , freebsd-geom@freebsd.org Subject: Re: gmirror comes up DEGRADED 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: Wed, 20 Dec 2006 16:05:15 -0000 --XuV1QlJbYrcVoo+x Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 20, 2006 at 04:57:36PM +0100, Pawel Jakub Dawidek wrote: > On Tue, Dec 19, 2006 at 02:41:05AM +0100, Max Laier wrote: > > Would it make sense to have a "graceful orphanization" for this kind of= =20 > > things? i.e. an operation with a semantic like "somebody asked me to g= o=20 > > away, so next time you get the chance - could you do so as well (for I= =20 > > depend on you being okay with this)?" It seems overly complicated to a= sk=20 > > classes that don't require a state save to implement a dedicated hook t= o=20 > > go away on system shutdown. For a "graceful orphanization", however, a= ll=20 > > you need to do is keep a flag in the softc, pass down the request and= =20 > > wait for the open count to drop to zero. >=20 > Most classes don't have to open provider below immediately - they open > them on first open of their providers. For example BSD class doesn't hold > MBR provider open if not needed. When you open ad0s1a, BSD class opens > ad0s1, then MBR class opens ad0. Some classes have to keep providers > open all the time or it's just easier that way, because of complex error > handling. MIRROR class for example may want to synchronize components > even if its provider is not open. Let me add the conclusion. For those simple GEOM classes that don't have to use shutdown hooks. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --XuV1QlJbYrcVoo+x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFiV6VForvXbEpPzQRAsulAJ9Yn2siS1dWXObbg3Q3rWcSyZUfQQCdFeQ5 ASYQCKpBwRQ73qw6JLzBXYk= =XtaY -----END PGP SIGNATURE----- --XuV1QlJbYrcVoo+x--