mirror of
https://github.com/adulau/aha.git
synced 2024-12-31 21:26:18 +00:00
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>
This commit is contained in:
parent
30c9afa6cc
commit
27dc9c5a3d
1 changed files with 1 additions and 1 deletions
|
@ -1663,7 +1663,7 @@ skip_pio:
|
||||||
/* queue 0 uses two msix vectors */
|
/* queue 0 uses two msix vectors */
|
||||||
if (ql2xmultique_tag) {
|
if (ql2xmultique_tag) {
|
||||||
cpus = num_online_cpus();
|
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);
|
(cpus + 1) : (ha->msix_count - 1);
|
||||||
ha->max_req_queues = 2;
|
ha->max_req_queues = 2;
|
||||||
} else if (ql2xmaxqueues > 1) {
|
} else if (ql2xmaxqueues > 1) {
|
||||||
|
|
Loading…
Reference in a new issue