diff options
author | Anirban Chakraborty <anirban.chakraborty@qlogic.com> | 2009-06-17 17:30:28 (GMT) |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-21 15:52:43 (GMT) |
commit | 27dc9c5a3d652b0d55ab9ab396dcce9f13bc77c3 (patch) | |
tree | 8bba00bc65a1e90cc6db4d7f5ab1cea094064cdd | |
parent | 30c9afa6cc477f6f21f8a0b36f3b81080941a0c9 (diff) | |
download | linux-fsl-qoriq-27dc9c5a3d652b0d55ab9ab396dcce9f13bc77c3.tar.xz |
qla2xxx: Fixed a bug in number of response queue creation logic.
Cc: stable@kernel.org
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index dcf0116..f0396e7 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -1663,7 +1663,7 @@ skip_pio: /* queue 0 uses two msix vectors */ if (ql2xmultique_tag) { cpus = num_online_cpus(); - ha->max_rsp_queues = (ha->msix_count - 1 - cpus) ? + ha->max_rsp_queues = (ha->msix_count - 1 > cpus) ? (cpus + 1) : (ha->msix_count - 1); ha->max_req_queues = 2; } else if (ql2xmaxqueues > 1) { |