Date: Wed, 20 Dec 2006 17:02:29 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Max Laier <max@love2party.net> Cc: Poul-Henning Kamp <phk@FreeBSD.org>, freebsd-geom@freebsd.org Subject: Re: gmirror comes up DEGRADED Message-ID: <20061220160229.GE88356@garage.freebsd.pl> In-Reply-To: <20061220155736.GD88356@garage.freebsd.pl> References: <200612161537.21348.max@love2party.net> <20061216170910.GC10541@garage.freebsd.pl> <200612190241.13265.max@love2party.net> <20061220155736.GD88356@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061220160229.GE88356>