Re: calling schedule() from interupt context

From: Robert Love (rml@tech9.net)
Date: Fri Nov 22 2002 - 04:16:04 EST


On Fri, 2002-11-22 at 04:09, David S. Miller wrote:
> From: "dan carpenter" <error27@email.com>
> Date: Fri, 22 Nov 2002 03:54:41 -0500
>
> module_put ==> put_cpu ==> preempt_schedule ==> schedule
>
> Oh we can't kill module references from interrupts?

No, I think you can. Or at least the put_cpu() will not hurt you.

Inside the interrupt handlers, the preemption count is bumped so
preempt_schedule() will never call schedule().

        Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:39 EST