Re: [PATCH] kernel:async function call:introduce async_run

From: Arjan van de Ven
Date: Sun May 17 2009 - 16:59:27 EST


On Wed, 13 May 2009 08:33:49 +0800
tom.leiming@xxxxxxxxx wrote:

> From: Ming Lei <tom.leiming@xxxxxxxxx>
>
> In fact, some async function call does not need to check, async_run
> is right for this kind of function call. Also, async_run is very
> suitable to used to start a thread in atomic context to do somthing,
> for now there is no such kind of kernel api, eg. kthread_run
> can not be started in atomic context.

I don't think it's worth complicating the cookie allocation;
I don't assume that what you're scheduling is going to take a really
long time...

if it does it's better to make a private domain for it.

--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/