diff options
author | Anirban Chakraborty <anirban.chakraborty@qlogic.com> | 2009-06-03 12:55:16 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-08 15:46:39 -0400 |
commit | 40859ae5f13534624cc35a05179b4f93ecbf531a (patch) | |
tree | 2023f47deed9d145c2a63ee77085ac2e8c90b798 /drivers/scsi/qla2xxx/qla_attr.c | |
parent | 1b91a2e6712393cffc33eeff5cf857f7d5b62fed (diff) |
[SCSI] qla2xxx: Correct queue-creation bug when driver loaded in QoS mode.
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>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 9aa00f25aa6a..2bd017ffb084 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c | |||
@@ -1651,13 +1651,13 @@ qla24xx_vport_create(struct fc_vport *fc_vport, bool disable) | |||
1651 | qla24xx_vport_disable(fc_vport, disable); | 1651 | qla24xx_vport_disable(fc_vport, disable); |
1652 | 1652 | ||
1653 | ret = 0; | 1653 | ret = 0; |
1654 | if (ha->cur_vport_count <= ha->flex_port_count || ql2xmultique_tag | 1654 | if (ql2xmaxqueues == 1 || ql2xmultique_tag || !ha->npiv_info) |
1655 | || ha->max_req_queues == 1 || !ha->npiv_info) | ||
1656 | goto vport_queue; | 1655 | goto vport_queue; |
1657 | /* Create a request queue in QoS mode for the vport */ | 1656 | /* Create a request queue in QoS mode for the vport */ |
1658 | for (cnt = ha->flex_port_count; cnt < ha->nvram_npiv_size; cnt++) { | 1657 | for (cnt = 0; cnt < ha->nvram_npiv_size; cnt++) { |
1659 | if (ha->npiv_info[cnt].port_name == vha->port_name && | 1658 | if (memcmp(ha->npiv_info[cnt].port_name, vha->port_name, 8) == 0 |
1660 | ha->npiv_info[cnt].node_name == vha->node_name) { | 1659 | && memcmp(ha->npiv_info[cnt].node_name, vha->node_name, |
1660 | 8) == 0) { | ||
1661 | qos = ha->npiv_info[cnt].q_qos; | 1661 | qos = ha->npiv_info[cnt].q_qos; |
1662 | break; | 1662 | break; |
1663 | } | 1663 | } |
@@ -1671,8 +1671,8 @@ qla24xx_vport_create(struct fc_vport *fc_vport, bool disable) | |||
1671 | vha->vp_idx); | 1671 | vha->vp_idx); |
1672 | else | 1672 | else |
1673 | DEBUG2(qla_printk(KERN_INFO, ha, | 1673 | DEBUG2(qla_printk(KERN_INFO, ha, |
1674 | "Request Que:%d created for vp_idx:%d\n", | 1674 | "Request Que:%d (QoS: %d) created for vp_idx:%d\n", |
1675 | ret, vha->vp_idx)); | 1675 | ret, qos, vha->vp_idx)); |
1676 | } | 1676 | } |
1677 | 1677 | ||
1678 | vport_queue: | 1678 | vport_queue: |