On 09.10.2020 17:58, Jakub Kicinski wrote: > On Fri, 9 Oct 2020 16:54:06 +0200 Heiner Kallweit wrote: >> I'm thinking about a __napi_schedule version that disables hard irq's >> conditionally, based on variable force_irqthreads, exported by the irq >> subsystem. This would allow to behave correctly with threadirqs set, >> whilst not loosing the _irqoff benefit with threadirqs unset. >> Let me come up with a proposal. > > I think you'd need to make napi_schedule_irqoff() behave like that, > right? Are there any uses of napi_schedule_irqoff() that are disabling > irqs and not just running from an irq handler? > Right, the best approach depends on the answer to the latter question. I didn't check this yet, therefore I described the least intrusive approach.
- [PATCH] net: stmmac: Don't call _irqoff() with hardirqs en... John Keeping
- Re: [PATCH] net: stmmac: Don't call _irqoff() with ha... Vladimir Oltean
- Re: [PATCH] net: stmmac: Don't call _irqoff() wit... John Keeping
- Re: [PATCH] net: stmmac: Don't call _irqoff()... Vladimir Oltean
- Re: [PATCH] net: stmmac: Don't call _irqoff() with ha... Heiner Kallweit
- Re: [PATCH] net: stmmac: Don't call _irqoff() wit... Jakub Kicinski
- Re: [PATCH] net: stmmac: Don't call _irqoff()... Heiner Kallweit
- Re: [PATCH] net: stmmac: Don't call _irqo... Heiner Kallweit
- Re: [PATCH] net: stmmac: Don't call ... Jakub Kicinski
- Re: [PATCH] net: stmmac: Don't c... Heiner Kallweit
- Re: [PATCH] net: stmmac: Don... Jakub Kicinski
- Re: [PATCH] net: stmmac: Don't c... Heiner Kallweit
- Re: [PATCH] net: stmmac: Don... Jakub Kicinski