diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2010-05-28 18:08:17 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:01:20 -0400 |
commit | 7e2b895b93db603ac3462175baa846ebf1be44da (patch) | |
tree | c2164aaefa8953f7b771cf5a45bf25e14c538e74 | |
parent | d3fa9e7d270e3d9b3fda325cdcb2ea77a00ed876 (diff) |
[SCSI] qla2xxx: Fix cpu-affinity usage for non-capable ISPs.
The TMFs used for pre-24xx ISPs incorrectly assumed 'cpu' tag
data could be valid. These chips have no multi-q/cpu-affinity
support. This corrects an oops seen on ISP23xx parts.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index f3650d0434ca..043f808ba3f4 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c | |||
@@ -866,8 +866,8 @@ qla2x00_abort_target(struct fc_port *fcport, unsigned int l, int tag) | |||
866 | 866 | ||
867 | l = l; | 867 | l = l; |
868 | vha = fcport->vha; | 868 | vha = fcport->vha; |
869 | req = vha->hw->req_q_map[tag]; | 869 | req = vha->hw->req_q_map[0]; |
870 | rsp = vha->hw->rsp_q_map[tag]; | 870 | rsp = req->rsp; |
871 | mcp->mb[0] = MBC_ABORT_TARGET; | 871 | mcp->mb[0] = MBC_ABORT_TARGET; |
872 | mcp->out_mb = MBX_9|MBX_2|MBX_1|MBX_0; | 872 | mcp->out_mb = MBX_9|MBX_2|MBX_1|MBX_0; |
873 | if (HAS_EXTENDED_IDS(vha->hw)) { | 873 | if (HAS_EXTENDED_IDS(vha->hw)) { |
@@ -915,8 +915,8 @@ qla2x00_lun_reset(struct fc_port *fcport, unsigned int l, int tag) | |||
915 | DEBUG11(printk("%s(%ld): entered.\n", __func__, fcport->vha->host_no)); | 915 | DEBUG11(printk("%s(%ld): entered.\n", __func__, fcport->vha->host_no)); |
916 | 916 | ||
917 | vha = fcport->vha; | 917 | vha = fcport->vha; |
918 | req = vha->hw->req_q_map[tag]; | 918 | req = vha->hw->req_q_map[0]; |
919 | rsp = vha->hw->rsp_q_map[tag]; | 919 | rsp = req->rsp; |
920 | mcp->mb[0] = MBC_LUN_RESET; | 920 | mcp->mb[0] = MBC_LUN_RESET; |
921 | mcp->out_mb = MBX_9|MBX_3|MBX_2|MBX_1|MBX_0; | 921 | mcp->out_mb = MBX_9|MBX_3|MBX_2|MBX_1|MBX_0; |
922 | if (HAS_EXTENDED_IDS(vha->hw)) | 922 | if (HAS_EXTENDED_IDS(vha->hw)) |