Re: [RFC][PATCH] irq_work

Peter Zijlstra
2010-06-24T11:35:00Z

On Thu, 2010-06-24 at 13:23 +0200, Ingo Molnar wrote:

> What might make sense is to offer two types of callbacks: one that is
> immediate whenever an event triggers - and another that is sleepable and is
> executed from process context.

Trouble is waking that thread, you cannot wake tasks from NMI context,
so whatever you do, you'll end up with a trampoline.

You could of course offer that trampoline nicely packaged, but I'm not
sure that's really worth the effort.