aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_iblock.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-10-12 11:07:00 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-10-23 23:21:05 -0400
commit42bf829eee0e36371a3df43978b14572c716cbe7 (patch)
tree2f488a819a713a2cfb8c093e4779ffe312291cc3 /drivers/target/target_core_iblock.c
parentc0427f155614908ca1147cd5b6a0d5cdcaef8327 (diff)
target: Cleanup unused se_task bits
This is a squashed version of the following se_task cleanup patches: target: remove the unused task_state_flags field in se_task target: remove the unused se_obj_ptr field in se_task target: remove the se_dev field in se_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_iblock.c')
-rw-r--r--drivers/target/target_core_iblock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_iblock.c b/drivers/target/target_core_iblock.c
index dcf93f85977a..21a3677984fb 100644
--- a/drivers/target/target_core_iblock.c
+++ b/drivers/target/target_core_iblock.c
@@ -499,7 +499,7 @@ static ssize_t iblock_show_configfs_dev_params(
499static void iblock_bio_destructor(struct bio *bio) 499static void iblock_bio_destructor(struct bio *bio)
500{ 500{
501 struct se_task *task = bio->bi_private; 501 struct se_task *task = bio->bi_private;
502 struct iblock_dev *ib_dev = task->se_dev->dev_ptr; 502 struct iblock_dev *ib_dev = task->task_se_cmd->se_dev->dev_ptr;
503 503
504 bio_free(bio, ib_dev->ibd_bio_set); 504 bio_free(bio, ib_dev->ibd_bio_set);
505} 505}
@@ -507,7 +507,7 @@ static void iblock_bio_destructor(struct bio *bio)
507static struct bio * 507static struct bio *
508iblock_get_bio(struct se_task *task, sector_t lba, u32 sg_num) 508iblock_get_bio(struct se_task *task, sector_t lba, u32 sg_num)
509{ 509{
510 struct iblock_dev *ib_dev = task->se_dev->dev_ptr; 510 struct iblock_dev *ib_dev = task->task_se_cmd->se_dev->dev_ptr;
511 struct iblock_req *ib_req = IBLOCK_REQ(task); 511 struct iblock_req *ib_req = IBLOCK_REQ(task);
512 struct bio *bio; 512 struct bio *bio;
513 513