diff options
Diffstat (limited to 'drivers/target/loopback')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index eeb7ee7ab9f7..7ba2542aabe7 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -118,7 +118,7 @@ static struct se_cmd *tcm_loop_allocate_core_cmd( | |||
118 | * Signal BIDI usage with T_TASK(cmd)->t_tasks_bidi | 118 | * Signal BIDI usage with T_TASK(cmd)->t_tasks_bidi |
119 | */ | 119 | */ |
120 | if (scsi_bidi_cmnd(sc)) | 120 | if (scsi_bidi_cmnd(sc)) |
121 | se_cmd->t_task.t_tasks_bidi = 1; | 121 | se_cmd->t_tasks_bidi = 1; |
122 | /* | 122 | /* |
123 | * Locate the struct se_lun pointer and attach it to struct se_cmd | 123 | * Locate the struct se_lun pointer and attach it to struct se_cmd |
124 | */ | 124 | */ |
@@ -169,7 +169,7 @@ static int tcm_loop_new_cmd_map(struct se_cmd *se_cmd) | |||
169 | * For BIDI commands, pass in the extra READ buffer | 169 | * For BIDI commands, pass in the extra READ buffer |
170 | * to transport_generic_map_mem_to_cmd() below.. | 170 | * to transport_generic_map_mem_to_cmd() below.. |
171 | */ | 171 | */ |
172 | if (se_cmd->t_task.t_tasks_bidi) { | 172 | if (se_cmd->t_tasks_bidi) { |
173 | struct scsi_data_buffer *sdb = scsi_in(sc); | 173 | struct scsi_data_buffer *sdb = scsi_in(sc); |
174 | 174 | ||
175 | sgl_bidi = sdb->table.sgl; | 175 | sgl_bidi = sdb->table.sgl; |
@@ -1424,13 +1424,6 @@ static int tcm_loop_register_configfs(void) | |||
1424 | &tcm_loop_tpg_release_fabric_acl; | 1424 | &tcm_loop_tpg_release_fabric_acl; |
1425 | fabric->tf_ops.tpg_get_inst_index = &tcm_loop_get_inst_index; | 1425 | fabric->tf_ops.tpg_get_inst_index = &tcm_loop_get_inst_index; |
1426 | /* | 1426 | /* |
1427 | * Since tcm_loop is mapping physical memory from Linux/SCSI | ||
1428 | * struct scatterlist arrays for each struct scsi_cmnd I/O, | ||
1429 | * we do not need TCM to allocate a iovec array for | ||
1430 | * virtual memory address mappings | ||
1431 | */ | ||
1432 | fabric->tf_ops.alloc_cmd_iovecs = NULL; | ||
1433 | /* | ||
1434 | * Used for setting up remaining TCM resources in process context | 1427 | * Used for setting up remaining TCM resources in process context |
1435 | */ | 1428 | */ |
1436 | fabric->tf_ops.new_cmd_map = &tcm_loop_new_cmd_map; | 1429 | fabric->tf_ops.new_cmd_map = &tcm_loop_new_cmd_map; |