]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b272b33039a5b250c8a2f37c804251a6f63b336
treea9b08a051c772e4f700544ed6bff6597add7af88
parent07775c3d48d20950f45f51d7cf0d477f93d09992
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