]> 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)
commitd7234c734d575b03a9b20f187258c03d2c742e4e
treea9b08a051c772e4f700544ed6bff6597add7af88
parent50bff4aedc64a99b8039b27da888650228d4f53d
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