block: simplify the restart case in __blkdev_get
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Jul 2020 14:33:07 +0000 (16:33 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Jul 2020 15:35:44 +0000 (09:35 -0600)
commitc5638ab417660e2c5d681aed5ce76df992982dbb
treea9b08a051c772e4f700544ed6bff6597add7af88
parente791ee6885f7e9e32c3e551cadea8bc6effaae1e
block: simplify the restart case in __blkdev_get

Insted of duplicating all the cleanup logic jump to the code that cleans
up anyway, and restart after that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c