diff options
author | Jan Kara <jack@suse.cz> | 2023-09-27 12:34:21 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-28 14:29:19 +0300 |
commit | e6aafdc8a76bd70ccc9ca8724d09fefba089c3e7 (patch) | |
tree | e2ca7e42ff36ac9f7c32fc294644ff5066a37182 /drivers/target/target_core_iblock.h | |
parent | a8ab90ff47bf2a2c9b1353592e14e46f87551b82 (diff) | |
download | linux-e6aafdc8a76bd70ccc9ca8724d09fefba089c3e7.tar.xz |
scsi: target: Convert to bdev_open_by_path()
Convert iblock and pscsi drivers to use bdev_open_by_path() and pass the
handle around.
CC: target-devel@vger.kernel.org
CC: linux-scsi@vger.kernel.org
Acked-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230927093442.25915-15-jack@suse.cz
Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'drivers/target/target_core_iblock.h')
-rw-r--r-- | drivers/target/target_core_iblock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_iblock.h b/drivers/target/target_core_iblock.h index 8c55375d2f75..683f9a55945b 100644 --- a/drivers/target/target_core_iblock.h +++ b/drivers/target/target_core_iblock.h @@ -32,6 +32,7 @@ struct iblock_dev { u32 ibd_flags; struct bio_set ibd_bio_set; struct block_device *ibd_bd; + struct bdev_handle *ibd_bdev_handle; bool ibd_readonly; struct iblock_dev_plug *ibd_plug; } ____cacheline_aligned; |