qla2xxx: adjust debug flags
Adjust debug flag to match debug comment. Signed-off-by: Quinn Tran <quinn.tran@qlogic.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com> Reviewed-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
Родитель
810e30bc46
Коммит
e5fdee875f
|
@ -3013,7 +3013,7 @@ qlt_abort_cmd_on_host_reset(struct scsi_qla_host *vha, struct qla_tgt_cmd *cmd)
|
|||
dump_stack();
|
||||
}
|
||||
|
||||
cmd->cmd_flags |= BIT_12;
|
||||
cmd->cmd_flags |= BIT_17;
|
||||
ha->tgt.tgt_ops->free_cmd(cmd);
|
||||
}
|
||||
|
||||
|
@ -3175,7 +3175,7 @@ static void qlt_do_ctio_completion(struct scsi_qla_host *vha, uint32_t handle,
|
|||
skip_term:
|
||||
|
||||
if (cmd->state == QLA_TGT_STATE_PROCESSED) {
|
||||
;
|
||||
cmd->cmd_flags |= BIT_12;
|
||||
} else if (cmd->state == QLA_TGT_STATE_NEED_DATA) {
|
||||
int rx_status = 0;
|
||||
|
||||
|
@ -3189,9 +3189,11 @@ skip_term:
|
|||
ha->tgt.tgt_ops->handle_data(cmd);
|
||||
return;
|
||||
} else if (cmd->state == QLA_TGT_STATE_ABORTED) {
|
||||
cmd->cmd_flags |= BIT_18;
|
||||
ql_dbg(ql_dbg_tgt_mgt, vha, 0xf01e,
|
||||
"Aborted command %p (tag %lld) finished\n", cmd, se_cmd->tag);
|
||||
} else {
|
||||
cmd->cmd_flags |= BIT_19;
|
||||
ql_dbg(ql_dbg_tgt_mgt, vha, 0xf05c,
|
||||
"qla_target(%d): A command in state (%d) should "
|
||||
"not return a CTIO complete\n", vha->vp_idx, cmd->state);
|
||||
|
@ -3203,7 +3205,6 @@ skip_term:
|
|||
dump_stack();
|
||||
}
|
||||
|
||||
|
||||
ha->tgt.tgt_ops->free_cmd(cmd);
|
||||
}
|
||||
|
||||
|
|
|
@ -961,6 +961,9 @@ struct qla_tgt_cmd {
|
|||
* BIT_14 - Back end data received/sent.
|
||||
* BIT_15 - SRR prepare ctio
|
||||
* BIT_16 - complete free
|
||||
* BIT_17 - flush - qlt_abort_cmd_on_host_reset
|
||||
* BIT_18 - completion w/abort status
|
||||
* BIT_19 - completion w/unknown status
|
||||
*/
|
||||
uint32_t cmd_flags;
|
||||
};
|
||||
|
|
|
@ -374,7 +374,7 @@ static int tcm_qla2xxx_write_pending(struct se_cmd *se_cmd)
|
|||
{
|
||||
struct qla_tgt_cmd *cmd = container_of(se_cmd,
|
||||
struct qla_tgt_cmd, se_cmd);
|
||||
|
||||
cmd->cmd_flags |= BIT_3;
|
||||
cmd->bufflen = se_cmd->data_length;
|
||||
cmd->dma_data_direction = target_reverse_dma_direction(se_cmd);
|
||||
|
||||
|
@ -546,7 +546,6 @@ static int tcm_qla2xxx_queue_data_in(struct se_cmd *se_cmd)
|
|||
cmd->sg_cnt = se_cmd->t_data_nents;
|
||||
cmd->sg = se_cmd->t_data_sg;
|
||||
cmd->offset = 0;
|
||||
cmd->cmd_flags |= BIT_3;
|
||||
|
||||
cmd->prot_sg_cnt = se_cmd->t_prot_nents;
|
||||
cmd->prot_sg = se_cmd->t_prot_sg;
|
||||
|
|
Загрузка…
Ссылка в новой задаче