From owner-freebsd-geom@FreeBSD.ORG Fri Mar 26 03:43:44 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB22016A4CE; Fri, 26 Mar 2004 03:43:44 -0800 (PST) Received: from darkness.comp.waw.pl (unknown [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86CDC43D41; Fri, 26 Mar 2004 03:43:44 -0800 (PST) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 843B9ACADB; Fri, 26 Mar 2004 12:43:43 +0100 (CET) Date: Fri, 26 Mar 2004 12:43:43 +0100 From: Pawel Jakub Dawidek To: Poul-Henning Kamp Message-ID: <20040326114343.GG8930@darkness.comp.waw.pl> References: <20040326113251.GE8930@darkness.comp.waw.pl> <1979.1080300848@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jk5HhkA9Kov5Oxsi" Content-Disposition: inline In-Reply-To: <1979.1080300848@critter.freebsd.dk> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: geom@FreeBSD.org cc: Lukas Ertl Subject: Re: Problem with g_unload_class() X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 11:43:45 -0000 --jk5HhkA9Kov5Oxsi Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 26, 2004 at 12:34:08PM +0100, Poul-Henning Kamp wrote: +> >Anyway this will be a big change. +>=20 +> No it isn't. Hmm, we can simulate such functionality, by doing only tests (can we remove this geom? Yes - block geom, return 0; No - unblock all geoms, return an error) in *_destroy_geom() function and do real removals in *_fini(). We block geoms to avoid races between _destroy_geom and _fini, but I'm not sure race is possible there. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --jk5HhkA9Kov5Oxsi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAZBdvForvXbEpPzQRAoLLAJ4kc9zISHRwxXLY1HAhgVne9TYpWACfdou3 ooBFW/YCVf3UexVNH2OO8e0= =oX/V -----END PGP SIGNATURE----- --jk5HhkA9Kov5Oxsi--