Re: [PATCH] Prevent nested interrupts when the IRQ stack is near overflowing v2

Thomas Gleixner
2010-03-25T16:52:29Z

On Thu, 25 Mar 2010, Linus Torvalds wrote:
> In particular, it's probably true that especially on modern hardware with
> multiple cores, and especially when you do _not_ have irq sharing (which
> is the common case these days for things like network drivers that can use
> MSI), we really would be better off having the irq disabled over the whole
> thing, and on some interrupt controllers it might even be worth it to do
> the old optimization of not masking-and-acking, but just acking.
>
> But see above. This is _not_ something that a driver can do any more. They
> don't know whether the interrupt might end up being shared. Just blindly
> setting IRAF_DISABLED in a driver is _not_ the answer. But being smarter
> in the generic irq handler code might work.

For the MSI ones it definitely works as they can not be shared. I'm
just not sure whether we can just enforce that for MSI.

Thanks,

tglx