Skip to content

Commit af74115

Browse files
rolanddNicholas Bellinger
authored andcommitted
target: Remove unused se_cmd.cmd_spdtl
This was originally for helping fabrics to determine overflow/underflow status, and has been superceeded by SCF_OVERFLOW_BIT + SCF_UNDERFLOW_BIT. Signed-off-by: Roland Dreier <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
1 parent 08a1620 commit af74115

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

drivers/target/target_core_transport.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,8 +1165,6 @@ int target_cmd_size_check(struct se_cmd *cmd, unsigned int size)
11651165
" 0x%02x\n", cmd->se_tfo->get_fabric_name(),
11661166
cmd->data_length, size, cmd->t_task_cdb[0]);
11671167

1168-
cmd->cmd_spdtl = size;
1169-
11701168
if (cmd->data_direction == DMA_TO_DEVICE) {
11711169
pr_err("Rejecting underflow/overflow"
11721170
" WRITE data\n");

include/target/target_core_base.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,6 @@ struct se_cmd {
503503
u32 se_ordered_id;
504504
/* Total size in bytes associated with command */
505505
u32 data_length;
506-
/* SCSI Presented Data Transfer Length */
507-
u32 cmd_spdtl;
508506
u32 residual_count;
509507
u32 orig_fe_lun;
510508
/* Persistent Reservation key */

0 commit comments

Comments
 (0)