]> git.baikalelectronics.ru Git - kernel.git/commit
block: integrate bd_start_claiming into __blkdev_get
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Jul 2020 14:33:10 +0000 (16:33 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Jul 2020 15:35:44 +0000 (09:35 -0600)
commit66c4fd98bd69ef2a296cd6b23257b9ac8003a027
tree99090ed15088d80ea003c752d66ae1d1c60b8d94
parent346437074043424ed7845f123f3349bc2ed58dd8
block: integrate bd_start_claiming into __blkdev_get

bd_start_claiming duplicates a lot of the work done in __blkdev_get.
Integrate the two functions to avoid the duplicate work, and to do the
right thing for the md -ERESTARTSYS corner case.

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