Problem with g_unload_class()
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Mar 26 03:35:28 PST 2004
On Fri, Mar 26, 2004 at 12:18:12PM +0100, Poul-Henning Kamp wrote:
+> But that is exactly the "silly" scenario I would like to avoid: Now
+> you have removed some of the geom instances an you have nuked the
+> taste and config function and then you give up and leave the class
+> still loaded.
BTW. Why can't we nuke config and taste here:
if (error == 0) {
mp->taste = NULL;
mp->config = NULL;
if (mp->fini != NULL)
mp->fini(mp);
LIST_REMOVE(mp, class);
}
Those events are called from the event queue, aren't they?
So this should be safe.
--
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/38c19f1b/attachment.bin
More information about the freebsd-geom
mailing list