]> www.infradead.org Git - users/hch/block.git/commit
block: grab a device model reference in blkdev_get_no_open
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Jun 2021 12:08:59 +0000 (14:08 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 21 Jul 2021 06:32:06 +0000 (08:32 +0200)
commit16d376ea37e648307d3ee5c602cafb7e4d8d03c5
tree0e1088697288cbf95dc23721ef39d2d89764769a
parent8c6f1a98f26fade900a2f6db583326eafe1e78c9
block: grab a device model reference in blkdev_get_no_open

Opening a block device needs to ensure it is fully present instead of
just the allocated memory.  Switch from an inode reference as obtained
by bdget to a full device model reference.

In fact we should not use inode references for anything in the block
layer.  There are three users left, two can be trivially removed
and the third (xen-blkfront) is a complete mess that needs more
attention.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/block_dev.c