]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
be2iscsi:Set num_cpu = 1 if pci_enable_msix fails
authorroot <root@localhost.localdomain>
Wed, 2 May 2012 14:13:21 +0000 (19:43 +0530)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 11 May 2012 00:08:50 +0000 (17:08 -0700)
 This patch sets the num_cpu to 1 if  msix not supported
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: root <root@localhost.(none)>
drivers/scsi/be2iscsi/be_main.c

index ccf92fc20570f83edc5233a0657246058c27a15d..47a9e871feb6834ea9f27971f1f798b7fa7d7e1e 100644 (file)
@@ -4281,8 +4281,11 @@ static int __devinit beiscsi_dev_probe(struct pci_dev *pcidev,
        phba->num_cpus = num_cpus;
        SE_DEBUG(DBG_LVL_8, "num_cpus = %d\n", phba->num_cpus);
 
-       if (enable_msix)
+       if (enable_msix) {
                beiscsi_msix_enable(phba);
+               if (!phba->msix_enabled)
+                       phba->num_cpus = 1;
+       }
        ret = be_ctrl_init(phba, pcidev);
        if (ret) {
                shost_printk(KERN_ERR, phba->shost, "beiscsi_dev_probe-"