target/iblock: fix holder printing in iblock_show_configfs_dev_params
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Sep 2020 05:41:02 +0000 (07:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 14:18:58 +0000 (08:18 -0600)
commit57ba10592030be8c8b17184ca093db5e45cdbb2b
tree48e92075c7ad96130fc86bca05cfdb593e23c0d5
parent74f94454099e89322f82fce35f7c73142516d17d
target/iblock: fix holder printing in iblock_show_configfs_dev_params

bd_contains is never NULL for an open block device.  In addition ibd_bd
is always set to a block device that was exclusively opened by the
target code, so the holder is guranteed to be ib_dev as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/target/target_core_iblock.c