Date: Fri, 26 Mar 2004 12:40:50 +0100 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: Lukas Ertl <le@FreeBSD.org> Subject: Re: Problem with g_unload_class() Message-ID: <2093.1080301250@critter.freebsd.dk> In-Reply-To: Your message of "Fri, 26 Mar 2004 12:35:27 %2B0100." <20040326113527.GF8930@darkness.comp.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20040326113527.GF8930@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@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2093.1080301250>
