Re: 4.9-rc7: (forcedeth?) BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

From: Eric Dumazet
Date: Tue Nov 29 2016 - 18:00:57 EST


On Tue, 2016-11-29 at 12:06 -0800, Linus Torvalds wrote:
> On Nov 29, 2016 11:58 AM, "Eric Dumazet" <eric.dumazet@xxxxxxxxx>
> wrote:
> >
> > nv_do_nic_poll() is simply buggy and needs a fix.
> >
> > synchronize_irq() can sleep.
>
> Yes, but why did it start showing up now? None of this has changed as
> far as I can see?
>
> Is it just timing and the transmit queue being busy? Perhaps due to
> the sheer size of messages? Meelis does seem to have a ton of
> debugging enabled..
>
> Linus
>
>
Looks like bad luck really or forced_irqthreads ?


These commits contain what is wanted.

02cea3958664723a5d2236f0f0058de97c7e4693
genirq: Provide disable_hardirq()



18258f7239a61d8929b8e0c7b6d46c446459074c
genirq: Provide synchronize_hardirq()