Problem with g_unload_class()
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Mar 26 03:40:52 PST 2004
In message <20040326113527.GF8930 at darkness.comp.waw.pl>, Pawel Jakub Dawidek wr
ites:
>BTW. Why can't we nuke config and taste here:
>
> if (error =3D=3D 0) {
> mp->taste =3D NULL;
> mp->config =3D NULL;
> if (mp->fini !=3D NULL)
> mp->fini(mp);
> LIST_REMOVE(mp, class);
> }
>
>Those events are called from the event queue, aren't they?
>So this should be safe.
That would force config to be only called from the event queue,
that is a hefty price to pay.
But a two pass is still necessary so we don't destroy half
of the geoms and not the other half.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-geom
mailing list