diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index d6817df95e30..94e53a5fd9aa 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -441,7 +441,6 @@ qla2x00_get_new_sp(scsi_qla_host_t *vha, fc_port_t *fcport, | |||
441 | 441 | ||
442 | sp->fcport = fcport; | 442 | sp->fcport = fcport; |
443 | sp->cmd = cmd; | 443 | sp->cmd = cmd; |
444 | sp->que = ha->req_q_map[0]; | ||
445 | sp->flags = 0; | 444 | sp->flags = 0; |
446 | CMD_SP(cmd) = (void *)sp; | 445 | CMD_SP(cmd) = (void *)sp; |
447 | cmd->scsi_done = done; | 446 | cmd->scsi_done = done; |
@@ -742,7 +741,7 @@ qla2xxx_eh_abort(struct scsi_cmnd *cmd) | |||
742 | unsigned long flags; | 741 | unsigned long flags; |
743 | int wait = 0; | 742 | int wait = 0; |
744 | struct qla_hw_data *ha = vha->hw; | 743 | struct qla_hw_data *ha = vha->hw; |
745 | struct req_que *req; | 744 | struct req_que *req = vha->req; |
746 | srb_t *spt; | 745 | srb_t *spt; |
747 | 746 | ||
748 | qla2x00_block_error_handler(cmd); | 747 | qla2x00_block_error_handler(cmd); |
@@ -758,7 +757,6 @@ qla2xxx_eh_abort(struct scsi_cmnd *cmd) | |||
758 | spt = (srb_t *) CMD_SP(cmd); | 757 | spt = (srb_t *) CMD_SP(cmd); |
759 | if (!spt) | 758 | if (!spt) |
760 | return SUCCESS; | 759 | return SUCCESS; |
761 | req = spt->que; | ||
762 | 760 | ||
763 | /* Check active list for command command. */ | 761 | /* Check active list for command command. */ |
764 | spin_lock_irqsave(&ha->hardware_lock, flags); | 762 | spin_lock_irqsave(&ha->hardware_lock, flags); |
@@ -826,7 +824,7 @@ qla2x00_eh_wait_for_pending_commands(scsi_qla_host_t *vha, unsigned int t, | |||
826 | return status; | 824 | return status; |
827 | 825 | ||
828 | spin_lock_irqsave(&ha->hardware_lock, flags); | 826 | spin_lock_irqsave(&ha->hardware_lock, flags); |
829 | req = sp->que; | 827 | req = vha->req; |
830 | for (cnt = 1; status == QLA_SUCCESS && | 828 | for (cnt = 1; status == QLA_SUCCESS && |
831 | cnt < MAX_OUTSTANDING_COMMANDS; cnt++) { | 829 | cnt < MAX_OUTSTANDING_COMMANDS; cnt++) { |
832 | sp = req->outstanding_cmds[cnt]; | 830 | sp = req->outstanding_cmds[cnt]; |