Skip to content

Commit bd31377

Browse files
Christoph HellwigNicholas Bellinger
authored andcommitted
target: remove the task_sectors field in struct se_task
Remove the task_sectors field that isn't used anywhere. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
1 parent 7a83aa4 commit bd31377

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

drivers/target/target_core_transport.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3723,8 +3723,6 @@ transport_allocate_data_tasks(struct se_cmd *cmd,
37233723
task->task_sg = cmd_sg;
37243724
task->task_sg_nents = sgl_nents;
37253725

3726-
task->task_sectors = sectors;
3727-
37283726
spin_lock_irqsave(&cmd->t_state_lock, flags);
37293727
list_add_tail(&task->t_list, &cmd->t_task_list);
37303728
spin_unlock_irqrestore(&cmd->t_state_lock, flags);

include/target/target_core_base.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,6 @@ struct se_queue_obj {
486486
};
487487

488488
struct se_task {
489-
u32 task_sectors;
490489
struct se_cmd *task_se_cmd;
491490
struct scatterlist *task_sg;
492491
u32 task_sg_nents;

0 commit comments

Comments
 (0)