diff options
author | Anirban Chakraborty <anirban.chakraborty@qlogic.com> | 2009-08-05 09:18:40 -0700 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-08-22 17:52:20 -0500 |
commit | 7163ea815170f8c5d56ead27d7e6fa3fa1f9844b (patch) | |
tree | f85fafb74828242c1be343caa020a45753ec1dfa /drivers/scsi/qla2xxx/qla_mbx.c | |
parent | 09ccbcc628f71e7f57b4a96982ad1bb2084391d8 (diff) | |
download | kernel_samsung_smdk4412-7163ea815170f8c5d56ead27d7e6fa3fa1f9844b.tar.gz kernel_samsung_smdk4412-7163ea815170f8c5d56ead27d7e6fa3fa1f9844b.tar.bz2 kernel_samsung_smdk4412-7163ea815170f8c5d56ead27d7e6fa3fa1f9844b.zip |
[SCSI] qla2xxx: Fix to ensure driver works in sinlge queue mode if multiqueue fails
When the multiqueue mode fails to work, the driver falls back on single
queue mode. This ensures that the firmware is reinitialized with single
queue options and all the resources are readjusted accordingly.
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mbx.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 8fcd99eeec0..b6202fe118a 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -1507,7 +1507,7 @@ qla24xx_login_fabric(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, DEBUG11(printk("%s(%ld): entered.\n", __func__, vha->host_no)); - if (ql2xmultique_tag) + if (ha->flags.cpu_affinity_enabled) req = ha->req_q_map[0]; else req = vha->req; @@ -2324,7 +2324,7 @@ __qla24xx_issue_tmf(char *name, uint32_t type, struct fc_port *fcport, vha = fcport->vha; ha = vha->hw; req = vha->req; - if (ql2xmultique_tag) + if (ha->flags.cpu_affinity_enabled) rsp = ha->rsp_q_map[tag + 1]; else rsp = req->rsp; |