loop: don't grab a reference to the block device
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Jul 2021 07:54:00 +0000 (09:54 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Aug 2021 19:37:28 +0000 (13:37 -0600)
commit4b2731226d7de4302e4d8766c86e3a21c56dc3b1
tree5821bdb9b3ebf9007cc43f7ce6790499c06de302
parent9d3b8813895d737fcef4ec8df518f67e5cc381b8
loop: don't grab a reference to the block device

The whole device block device won't be removed while the disk is still
alive, so don't bother to grab a reference to it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Ming Lei <ming.lei@rehat.com>
Reviewed-by: Chaitanya Kulkarni <ckulkarnilinux@gmail.com>
Link: https://lore.kernel.org/r/20210722075402.983367-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c