Re: [PATCH] kernel:async function call:introduce async_run_inatomic(v2)

Arjan van de Ven
2009-05-17T21:06:40Z

On Thu, 14 May 2009 05:19:39 +0200
Frederic Weisbecker <fweisbec@gmail.com> wrote:

> But I wonder if async_run_inatomic() is really matching any common
> pattern inside the kernel.
> It seems to me rare to never need waiting for an async job completion.

there are some very good reasons to have the option to wait for all;
module unloading comes to mind for example.

I'd not like it to automatically punt all async "inatomic" work to a
separate space; that should be an option for the caller.
If the work is not going to take long, it's actually GOOD that you can
globally synchronize for it...

--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org