The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] block/cpqarray.c: remove IRQF_DISABLED flag
@ 2015-02-27 12:32 Valentin Rothberg
  2015-03-02 21:56 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Valentin Rothberg @ 2015-02-27 12:32 UTC (permalink / raw)
  To: akpm, iss_storagedev, linux-kernel; +Cc: Valentin Rothberg

The IRQF_DISABLED is a NOOP and scheduled to be removed.  According to
Ingo Molnar (e58aa3d2d0cc01ad8d6f7f640a0670433f794922) running IRQ
handlers with interrupts enabled can cause stack overflows when the
interrupt line of the issuing device is still active.

Signed-off-by: Valentin Rothberg <Valentin.Rothberg@lip6.fr>
---
 drivers/block/cpqarray.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c
index 2b94403..9e92b2c 100644
--- a/drivers/block/cpqarray.c
+++ b/drivers/block/cpqarray.c
@@ -405,8 +405,8 @@ static int cpqarray_register_ctlr(int i, struct pci_dev *pdev)
 		goto Enomem4;
 	}
 	hba[i]->access.set_intr_mask(hba[i], 0);
-	if (request_irq(hba[i]->intr, do_ida_intr,
-		IRQF_DISABLED|IRQF_SHARED, hba[i]->devname, hba[i]))
+	if (request_irq(hba[i]->intr, do_ida_intr, IRQF_SHARED,
+		hba[i]->devname, hba[i]))
 	{
 		printk(KERN_ERR "cpqarray: Unable to get irq %d for %s\n",
 				hba[i]->intr, hba[i]->devname);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-03  9:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 12:32 [PATCH] block/cpqarray.c: remove IRQF_DISABLED flag Valentin Rothberg
2015-03-02 21:56 ` Andrew Morton
2015-03-03  8:30   ` Valentin Rothberg
2015-03-03  8:37   ` Ingo Molnar
2015-03-03  9:51     ` Valentin Rothberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox