diff options
author | Karen Higgins <karen.higgins@qlogic.com> | 2010-12-03 01:12:22 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:24:37 -0500 |
commit | 6790d4fecf4373016e2983f913bcc0f1cdfa8ca0 (patch) | |
tree | de6adcbd13666037133fa8f34a03df5c331fdf1c /drivers/scsi/qla4xxx | |
parent | a1fc26baae41e00a3ecfd99bbe91aa2435045625 (diff) |
[SCSI] qla4xxx: use correct fw_ddb_index in abort task
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: Karen Higgins <karen.higgins@qlogic.com>
Signed-off-by: Ravi Anand <ravi.anand@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_def.h | 3 | ||||
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_mbx.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_def.h b/drivers/scsi/qla4xxx/ql4_def.h index 0f3bfc3da5cf..060e64f57a3d 100644 --- a/drivers/scsi/qla4xxx/ql4_def.h +++ b/drivers/scsi/qla4xxx/ql4_def.h | |||
@@ -175,7 +175,7 @@ | |||
175 | struct srb { | 175 | struct srb { |
176 | struct list_head list; /* (8) */ | 176 | struct list_head list; /* (8) */ |
177 | struct scsi_qla_host *ha; /* HA the SP is queued on */ | 177 | struct scsi_qla_host *ha; /* HA the SP is queued on */ |
178 | struct ddb_entry *ddb; | 178 | struct ddb_entry *ddb; |
179 | uint16_t flags; /* (1) Status flags. */ | 179 | uint16_t flags; /* (1) Status flags. */ |
180 | 180 | ||
181 | #define SRB_DMA_VALID BIT_3 /* DMA Buffer mapped. */ | 181 | #define SRB_DMA_VALID BIT_3 /* DMA Buffer mapped. */ |
@@ -191,7 +191,6 @@ struct srb { | |||
191 | struct scsi_cmnd *cmd; /* (4) SCSI command block */ | 191 | struct scsi_cmnd *cmd; /* (4) SCSI command block */ |
192 | dma_addr_t dma_handle; /* (4) for unmap of single transfers */ | 192 | dma_addr_t dma_handle; /* (4) for unmap of single transfers */ |
193 | struct kref srb_ref; /* reference count for this srb */ | 193 | struct kref srb_ref; /* reference count for this srb */ |
194 | uint32_t fw_ddb_index; | ||
195 | uint8_t err_id; /* error id */ | 194 | uint8_t err_id; /* error id */ |
196 | #define SRB_ERR_PORT 1 /* Request failed because "port down" */ | 195 | #define SRB_ERR_PORT 1 /* Request failed because "port down" */ |
197 | #define SRB_ERR_LOOP 2 /* Request failed because "loop down" */ | 196 | #define SRB_ERR_LOOP 2 /* Request failed because "loop down" */ |
diff --git a/drivers/scsi/qla4xxx/ql4_mbx.c b/drivers/scsi/qla4xxx/ql4_mbx.c index 2d2f9c879bfd..8961d4c03e3b 100644 --- a/drivers/scsi/qla4xxx/ql4_mbx.c +++ b/drivers/scsi/qla4xxx/ql4_mbx.c | |||
@@ -934,7 +934,7 @@ int qla4xxx_abort_task(struct scsi_qla_host *ha, struct srb *srb) | |||
934 | return status; | 934 | return status; |
935 | 935 | ||
936 | mbox_cmd[0] = MBOX_CMD_ABORT_TASK; | 936 | mbox_cmd[0] = MBOX_CMD_ABORT_TASK; |
937 | mbox_cmd[1] = srb->fw_ddb_index; | 937 | mbox_cmd[1] = srb->ddb->fw_ddb_index; |
938 | mbox_cmd[2] = index; | 938 | mbox_cmd[2] = index; |
939 | /* Immediate Command Enable */ | 939 | /* Immediate Command Enable */ |
940 | mbox_cmd[5] = 0x01; | 940 | mbox_cmd[5] = 0x01; |