Problem with g_unload_class()

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Mar 26 03:43:45 PST 2004


On Fri, Mar 26, 2004 at 12:34:08PM +0100, Poul-Henning Kamp wrote:
+> >Anyway this will be a big change.
+> 
+> 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.

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd at FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20040326/59162e23/attachment.bin


More information about the freebsd-geom mailing list