Skip to content

Commit

Permalink
target: remove the task_sectors field in struct se_task
Browse files Browse the repository at this point in the history
Remove the task_sectors field that isn't used anywhere.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Christoph Hellwig authored and Nicholas Bellinger committed May 6, 2012
1 parent 7a83aa4 commit bd31377
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -3723,8 +3723,6 @@ transport_allocate_data_tasks(struct se_cmd *cmd,
task->task_sg = cmd_sg;
task->task_sg_nents = sgl_nents;

task->task_sectors = sectors;

spin_lock_irqsave(&cmd->t_state_lock, flags);
list_add_tail(&task->t_list, &cmd->t_task_list);
spin_unlock_irqrestore(&cmd->t_state_lock, flags);
Expand Down
1 change: 0 additions & 1 deletion include/target/target_core_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,6 @@ struct se_queue_obj {
};

struct se_task {
u32 task_sectors;
struct se_cmd *task_se_cmd;
struct scatterlist *task_sg;
u32 task_sg_nents;
Expand Down

0 comments on commit bd31377

Please sign in to comment.