Commit 6790d4fe authored by Karen Higgins's avatar Karen Higgins Committed by James Bottomley

[SCSI] qla4xxx: use correct fw_ddb_index in abort task

Signed-off-by: default avatarVikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: default avatarKaren Higgins <karen.higgins@qlogic.com>
Signed-off-by: default avatarRavi Anand <ravi.anand@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent a1fc26ba
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
struct srb { struct srb {
struct list_head list; /* (8) */ struct list_head list; /* (8) */
struct scsi_qla_host *ha; /* HA the SP is queued on */ struct scsi_qla_host *ha; /* HA the SP is queued on */
struct ddb_entry *ddb; struct ddb_entry *ddb;
uint16_t flags; /* (1) Status flags. */ uint16_t flags; /* (1) Status flags. */
#define SRB_DMA_VALID BIT_3 /* DMA Buffer mapped. */ #define SRB_DMA_VALID BIT_3 /* DMA Buffer mapped. */
...@@ -191,7 +191,6 @@ struct srb { ...@@ -191,7 +191,6 @@ struct srb {
struct scsi_cmnd *cmd; /* (4) SCSI command block */ struct scsi_cmnd *cmd; /* (4) SCSI command block */
dma_addr_t dma_handle; /* (4) for unmap of single transfers */ dma_addr_t dma_handle; /* (4) for unmap of single transfers */
struct kref srb_ref; /* reference count for this srb */ struct kref srb_ref; /* reference count for this srb */
uint32_t fw_ddb_index;
uint8_t err_id; /* error id */ uint8_t err_id; /* error id */
#define SRB_ERR_PORT 1 /* Request failed because "port down" */ #define SRB_ERR_PORT 1 /* Request failed because "port down" */
#define SRB_ERR_LOOP 2 /* Request failed because "loop down" */ #define SRB_ERR_LOOP 2 /* Request failed because "loop down" */
......
...@@ -934,7 +934,7 @@ int qla4xxx_abort_task(struct scsi_qla_host *ha, struct srb *srb) ...@@ -934,7 +934,7 @@ int qla4xxx_abort_task(struct scsi_qla_host *ha, struct srb *srb)
return status; return status;
mbox_cmd[0] = MBOX_CMD_ABORT_TASK; mbox_cmd[0] = MBOX_CMD_ABORT_TASK;
mbox_cmd[1] = srb->fw_ddb_index; mbox_cmd[1] = srb->ddb->fw_ddb_index;
mbox_cmd[2] = index; mbox_cmd[2] = index;
/* Immediate Command Enable */ /* Immediate Command Enable */
mbox_cmd[5] = 0x01; mbox_cmd[5] = 0x01;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment