|
@@ -113,11 +113,9 @@ static struct se_cmd *tcm_loop_allocate_core_cmd(
|
|
scsi_bufflen(sc), sc->sc_data_direction, sam_task_attr,
|
|
scsi_bufflen(sc), sc->sc_data_direction, sam_task_attr,
|
|
&tl_cmd->tl_sense_buf[0]);
|
|
&tl_cmd->tl_sense_buf[0]);
|
|
|
|
|
|
- /*
|
|
|
|
- * Signal BIDI usage with T_TASK(cmd)->t_tasks_bidi
|
|
|
|
- */
|
|
|
|
if (scsi_bidi_cmnd(sc))
|
|
if (scsi_bidi_cmnd(sc))
|
|
- se_cmd->t_tasks_bidi = 1;
|
|
|
|
|
|
+ se_cmd->se_cmd_flags |= SCF_BIDI;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Locate the struct se_lun pointer and attach it to struct se_cmd
|
|
* Locate the struct se_lun pointer and attach it to struct se_cmd
|
|
*/
|
|
*/
|
|
@@ -154,7 +152,7 @@ static int tcm_loop_new_cmd_map(struct se_cmd *se_cmd)
|
|
* For BIDI commands, pass in the extra READ buffer
|
|
* For BIDI commands, pass in the extra READ buffer
|
|
* to transport_generic_map_mem_to_cmd() below..
|
|
* to transport_generic_map_mem_to_cmd() below..
|
|
*/
|
|
*/
|
|
- if (se_cmd->t_tasks_bidi) {
|
|
|
|
|
|
+ if (se_cmd->se_cmd_flags & SCF_BIDI) {
|
|
struct scsi_data_buffer *sdb = scsi_in(sc);
|
|
struct scsi_data_buffer *sdb = scsi_in(sc);
|
|
|
|
|
|
sgl_bidi = sdb->table.sgl;
|
|
sgl_bidi = sdb->table.sgl;
|