Revert "scsi: qedi: Allocate IRQs based on msix_cnt"
authorManish Rangankar <mrangankar@marvell.com>
Sun, 26 May 2019 12:22:28 +0000 (15:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 May 2019 20:04:12 +0000 (13:04 -0700)
 Always request for number of irqs equals to number of queues.

This reverts commit 1a291bce5eaf5374627d337157544aa6499ce34a.

Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Ariel Elior <ariel.elior@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/scsi/qedi/qedi_main.c

index e5db9a9954dc0cd015577686c8bdb5efda9f78de..f07e0814a6578974f25f000e6ff8965ce28b0b4a 100644 (file)
@@ -1336,7 +1336,7 @@ static int qedi_request_msix_irq(struct qedi_ctx *qedi)
        int i, rc, cpu;
 
        cpu = cpumask_first(cpu_online_mask);
-       for (i = 0; i < qedi->int_info.msix_cnt; i++) {
+       for (i = 0; i < MIN_NUM_CPUS_MSIX(qedi); i++) {
                rc = request_irq(qedi->int_info.msix[i].vector,
                                 qedi_msix_handler, 0, "qedi",
                                 &qedi->fp_array[i]);