Date: Wed, 19 Oct 2005 20:14:16 +0200 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Szalai Andras <andrew@djw.hu> Cc: freebsd-geom@freebsd.org Subject: Re: geom orphan question Message-ID: <5755.1129745656@critter.freebsd.dk> In-Reply-To: Your message of "Wed, 19 Oct 2005 20:12:31 %2B0200." <20051019181231.GD76081@web.djw.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20051019181231.GD76081@web.djw.hu>, Szalai Andras writes: >Hi, > >On Wed, Oct 19, 2005 at 08:03:27PM +0200, Poul-Henning Kamp wrote: >> In message <20051019175310.GC76081@web.djw.hu>, Szalai Andras writes: >[...] > >> There are counters in consumers and providers which can tell >> you that. >> >> The above code seems to play fast and loose with that aspect. > >But it means that I have to do something similar to this? > >while (nstart != end) { wait... } >g_detach(...) That would require a thread you can sleep in. A better way is to catch it in your bio_done, and fire off an event to do the cleanup. -- 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?5755.1129745656>