From bd31377878868a47b2d2e6f570fb0cace828555b Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 23 Apr 2012 11:35:32 -0400 Subject: [PATCH] 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 Signed-off-by: Nicholas Bellinger --- drivers/target/target_core_transport.c | 2 -- include/target/target_core_base.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 9c9c11dc307e..be580ab7afac 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -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); diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 5a4249d84040..a4143cd54437 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -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; -- 2.39.5