diff options
author | Anirban Chakraborty <anirban.chakraborty@qlogic.com> | 2009-04-07 01:33:42 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-05-20 18:21:08 -0400 |
commit | 67c2e93ae7465a3e279503ceddd7bd153d74bcf8 (patch) | |
tree | 3a28588b7289e290366964e70fbe081826427ff3 /drivers/scsi/qla2xxx/qla_init.c | |
parent | 68ca949cdb04b4dc71451a999148fbc5f187a220 (diff) |
[SCSI] qla2xxx: Remove reference to request queue from scsi request block.
srbs used to maintain a reference to the request queue on which
it was enqueued. This is no longer required as the request queue
pointer is now maintained in the scsi host that issues the srb.
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_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 059909c9f29b..4c14cde3295f 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -3177,8 +3177,14 @@ qla2x00_loop_resync(scsi_qla_host_t *vha) | |||
3177 | { | 3177 | { |
3178 | int rval = QLA_SUCCESS; | 3178 | int rval = QLA_SUCCESS; |
3179 | uint32_t wait_time; | 3179 | uint32_t wait_time; |
3180 | struct req_que *req = vha->req; | 3180 | struct req_que *req; |
3181 | struct rsp_que *rsp = req->rsp; | 3181 | struct rsp_que *rsp; |
3182 | |||
3183 | if (ql2xmultique_tag) | ||
3184 | req = vha->hw->req_q_map[0]; | ||
3185 | else | ||
3186 | req = vha->req; | ||
3187 | rsp = req->rsp; | ||
3182 | 3188 | ||
3183 | atomic_set(&vha->loop_state, LOOP_UPDATE); | 3189 | atomic_set(&vha->loop_state, LOOP_UPDATE); |
3184 | clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags); | 3190 | clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags); |
@@ -4163,13 +4169,19 @@ qla24xx_configure_vhba(scsi_qla_host_t *vha) | |||
4163 | uint16_t mb[MAILBOX_REGISTER_COUNT]; | 4169 | uint16_t mb[MAILBOX_REGISTER_COUNT]; |
4164 | struct qla_hw_data *ha = vha->hw; | 4170 | struct qla_hw_data *ha = vha->hw; |
4165 | struct scsi_qla_host *base_vha = pci_get_drvdata(ha->pdev); | 4171 | struct scsi_qla_host *base_vha = pci_get_drvdata(ha->pdev); |
4166 | struct req_que *req = vha->req; | 4172 | struct req_que *req; |
4167 | struct rsp_que *rsp = req->rsp; | 4173 | struct rsp_que *rsp; |
4168 | 4174 | ||
4169 | if (!vha->vp_idx) | 4175 | if (!vha->vp_idx) |
4170 | return -EINVAL; | 4176 | return -EINVAL; |
4171 | 4177 | ||
4172 | rval = qla2x00_fw_ready(base_vha); | 4178 | rval = qla2x00_fw_ready(base_vha); |
4179 | if (ql2xmultique_tag) | ||
4180 | req = ha->req_q_map[0]; | ||
4181 | else | ||
4182 | req = vha->req; | ||
4183 | rsp = req->rsp; | ||
4184 | |||
4173 | if (rval == QLA_SUCCESS) { | 4185 | if (rval == QLA_SUCCESS) { |
4174 | clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); | 4186 | clear_bit(RESET_MARKER_NEEDED, &vha->dpc_flags); |
4175 | qla2x00_marker(vha, req, rsp, 0, 0, MK_SYNC_ALL); | 4187 | qla2x00_marker(vha, req, rsp, 0, 0, MK_SYNC_ALL); |