From mboxrd@z Thu Jan 1 00:00:00 1970 From: michaelc@cs.wisc.edu Subject: [PATCH 06/17] be2iscsi:Set num_cpu = 1 if pci_enable_msix fails Date: Tue, 3 Apr 2012 23:41:41 -0500 Message-ID: <1333514512-21799-7-git-send-email-michaelc@cs.wisc.edu> References: <1333514512-21799-1-git-send-email-michaelc@cs.wisc.edu> Return-path: Received: from mx1.redhat.com ([209.132.183.28]:22586 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751212Ab2DDEmB (ORCPT ); Wed, 4 Apr 2012 00:42:01 -0400 In-Reply-To: <1333514512-21799-1-git-send-email-michaelc@cs.wisc.edu> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: linux-scsi@vger.kernel.org Cc: Jayamohan Kallickal , Mike Christie From: Jayamohan Kallickal This patch sets the num_cpu to 1 if msix not supported Signed-off-by: Jayamohan Kallickal Signed-off-by: Mike Christie --- drivers/scsi/be2iscsi/be_main.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 4e20213..f761924 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -4279,8 +4279,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-" -- 1.7.7.6