Re: calling schedule() from interupt context

From: dan carpenter (error27@email.com)
Date: Fri Nov 22 2002 - 11:04:09 EST


From: Robert Love <rml@tech9.net>

> On Fri, 2002-11-22 at 03:54, dan carpenter wrote:
>
> (Next time trim your CC list: none of those poor guys needed this
> email..)
>

trimmed.

> > In drivers/net/tokenring/3c359.c xl_interrupt() calls schedule().
> > The path from xl_interupt to schedule is:
> > xl_rx ==> netif_rx ==>
> > kfree_skb ==> __kfree_skb ==>
> > secpath_put ==> __secpath_destroy ==>
> > xfrm_state_put ==> __xfrm_state_destroy ==> xfrm_put_type ==>
> > module_put ==> put_cpu ==> preempt_schedule ==> schedule
>
> Are you actually seeing this code path or is this just what your script
> is showing you?
>

ok. I'm an idiot.

The script only checks things at compile time not at runtime. So you are
right, of course, that this couldn't happen in real life because of the
preemp_count.

Thanks for the explanation...

regards,
dan carpenter

-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

One click access to the Top Search Engines http://www.exactsearchbar.com/mailcom

- 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:40 EST