aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Hernandez <michael.hernandez@qlogic.com>2010-03-19 19:59:18 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-03-27 15:11:32 -0400
commitd84a47c2e8d8880d068f23f3033f6f6987717b17 (patch)
tree4f8a75f46db164ca9e6aa6ff8271e70365fb492b /drivers
parent12cec63e40f9b9c2a4766a0f43404a9642062f35 (diff)
[SCSI] qla2xxx: Check to make sure multique and CPU affinity support is not enabled at the same time.
The logic is changed to detect this condition based on following 1) both module parameters are off (ql2xmaxqueues and ql2xmultique_tag). 2) both module parameters are on (ql2xmaxqueues and ql2xmultique_tag). 3) The HBA does not support multi queue. Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 46720b23028f..be3f1d3a9c1f 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -1676,9 +1676,11 @@ skip_pio:
1676 1676
1677 /* Determine queue resources */ 1677 /* Determine queue resources */
1678 ha->max_req_queues = ha->max_rsp_queues = 1; 1678 ha->max_req_queues = ha->max_rsp_queues = 1;
1679 if ((ql2xmaxqueues <= 1 || ql2xmultique_tag < 1) && 1679 if ((ql2xmaxqueues <= 1 && !ql2xmultique_tag) ||
1680 (ql2xmaxqueues > 1 && ql2xmultique_tag) ||
1680 (!IS_QLA25XX(ha) && !IS_QLA81XX(ha))) 1681 (!IS_QLA25XX(ha) && !IS_QLA81XX(ha)))
1681 goto mqiobase_exit; 1682 goto mqiobase_exit;
1683
1682 ha->mqiobase = ioremap(pci_resource_start(ha->pdev, 3), 1684 ha->mqiobase = ioremap(pci_resource_start(ha->pdev, 3),
1683 pci_resource_len(ha->pdev, 3)); 1685 pci_resource_len(ha->pdev, 3));
1684 if (ha->mqiobase) { 1686 if (ha->mqiobase) {