diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-06 13:03:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-06 13:03:22 -0700 |
commit | 94c4fcec0144e032ef7d4ec761ab81d570b0bc2a (patch) | |
tree | b67880526801ce7af4c6bc847fcb1742569dc0f9 /kernel | |
parent | 14e71e4fb94c340273534a6d7f210aa82a3ca717 (diff) | |
parent | 753649dbc49345a73a2454c770a3f2d54d11aec6 (diff) | |
download | op-kernel-dev-94c4fcec0144e032ef7d4ec761ab81d570b0bc2a.zip op-kernel-dev-94c4fcec0144e032ef7d4ec761ab81d570b0bc2a.tar.gz |
Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
genirq: Force MSI irq handlers to run with interrupts disabled
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/manage.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 398fda15..704e488 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -757,6 +757,16 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) if (new->flags & IRQF_ONESHOT) desc->status |= IRQ_ONESHOT; + /* + * Force MSI interrupts to run with interrupts + * disabled. The multi vector cards can cause stack + * overflows due to nested interrupts when enough of + * them are directed to a core and fire at the same + * time. + */ + if (desc->msi_desc) + new->flags |= IRQF_DISABLED; + if (!(desc->status & IRQ_NOAUTOEN)) { desc->depth = 0; desc->status &= ~IRQ_DISABLED; |