diff options
Diffstat (limited to 'drivers/target/target_core_iblock.c')
| -rw-r--r-- | drivers/target/target_core_iblock.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/target/target_core_iblock.c b/drivers/target/target_core_iblock.c index 29408d46a6d9..57d7674c5013 100644 --- a/drivers/target/target_core_iblock.c +++ b/drivers/target/target_core_iblock.c | |||
| @@ -553,14 +553,6 @@ static void iblock_complete_cmd(struct se_cmd *cmd) | |||
| 553 | kfree(ibr); | 553 | kfree(ibr); |
| 554 | } | 554 | } |
| 555 | 555 | ||
| 556 | static void iblock_bio_destructor(struct bio *bio) | ||
| 557 | { | ||
| 558 | struct se_cmd *cmd = bio->bi_private; | ||
| 559 | struct iblock_dev *ib_dev = cmd->se_dev->dev_ptr; | ||
| 560 | |||
| 561 | bio_free(bio, ib_dev->ibd_bio_set); | ||
| 562 | } | ||
| 563 | |||
| 564 | static struct bio * | 556 | static struct bio * |
| 565 | iblock_get_bio(struct se_cmd *cmd, sector_t lba, u32 sg_num) | 557 | iblock_get_bio(struct se_cmd *cmd, sector_t lba, u32 sg_num) |
| 566 | { | 558 | { |
| @@ -582,7 +574,6 @@ iblock_get_bio(struct se_cmd *cmd, sector_t lba, u32 sg_num) | |||
| 582 | 574 | ||
| 583 | bio->bi_bdev = ib_dev->ibd_bd; | 575 | bio->bi_bdev = ib_dev->ibd_bd; |
| 584 | bio->bi_private = cmd; | 576 | bio->bi_private = cmd; |
| 585 | bio->bi_destructor = iblock_bio_destructor; | ||
| 586 | bio->bi_end_io = &iblock_bio_done; | 577 | bio->bi_end_io = &iblock_bio_done; |
| 587 | bio->bi_sector = lba; | 578 | bio->bi_sector = lba; |
| 588 | return bio; | 579 | return bio; |
