summaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_transport.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-04-23 11:35:30 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-05-06 15:02:59 -0700
commit72a0e5e2e2e6b577343c79013611ad5701e94482 (patch)
tree06e41f5240a98040a2a6eed30ab75c0c4213baf2 /drivers/target/target_core_transport.c
parented3102c678c6274933948f9097bb4e2b314e5f82 (diff)
downloadlinux-72a0e5e2e2e6b577343c79013611ad5701e94482.tar.gz
linux-72a0e5e2e2e6b577343c79013611ad5701e94482.tar.xz
linux-72a0e5e2e2e6b577343c79013611ad5701e94482.zip
target: remove the task_lba field in struct se_task
Now that we don't split commands the lba field in the task is always equivalent to the one in the CDB, even in cases where we have two tasks due to a BIDI transfer. Just refer the the lba in the command instead of duplicating it in the task. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_transport.c')
-rw-r--r--drivers/target/target_core_transport.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index 2b84521fa0b4..0fb3521d32d6 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -3724,7 +3724,6 @@ transport_allocate_data_tasks(struct se_cmd *cmd,
task->task_sg_nents = sgl_nents;
task->task_size = cmd->data_length;
- task->task_lba = cmd->t_task_lba;
task->task_sectors = sectors;
spin_lock_irqsave(&cmd->t_state_lock, flags);