md: remove lock_bdev / unlock_bdev
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Nov 2022 13:32:53 +0000 (14:32 +0100)
committerSong Liu <song@kernel.org>
Fri, 2 Dec 2022 19:21:01 +0000 (11:21 -0800)
commitfb541ca4c36500b7b1d1a4def992059d9af56f14
tree2624b1862f3b7d7aa9bd8d6ca6a137f3505b5d3f
parent1d6df9d352bb2a3c2ddb32851dfcafb417c47762
md: remove lock_bdev / unlock_bdev

These wrappers for blkdev_get / blkdev_put just horribly confuse the
code with their odd naming.  Remove them and improve the error unwinding
in md_import_device with the now folded code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/md.c