Unloading GEOM classes
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed May 19 09:20:16 PDT 2004
On Wed, May 19, 2004 at 05:43:28PM +0200, Poul-Henning Kamp wrote:
+> In message <20040519165626.W4275 at pcle2.cc.univie.ac.at>, Lukas Ertl writes:
+> >Hello fellow GEOM hackers,
+> >
+> >I'd like to get the discussion about unloading GEOM classes rolling again,
+> >and I'm really pleading for a change of the current code in geom_subr.c.
+>
+> OK, I just checked with peter@ and he belives that we can simply do
+> a DROP_GIANT() ... PICKUP_GIANT() in the g_modevent() and avoid the
+> need for the eventqueue there.
+>
+> Can somebody try that ?
Here is the patch:
http://people.freebsd.org/~pjd/patches/g_unload_class.patch
UNTESTED. Lukas, could you try it and see if it fix your problem.
The whole trick could a g_waitidle() after calling destroy_geom method.
BTW. We should really commit g_waitidle_lock() version, it will be useful
here too:
http://people.freebsd.org/~pjd/patches/g_waitidle_lock.patch
--
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/20040519/fc9b01d3/attachment.bin
More information about the freebsd-geom
mailing list