block: move the initial blkg lookup into blkg_tryget_closest
authorChristoph Hellwig <hch@lst.de>
Sat, 27 Jun 2020 07:31:54 +0000 (09:31 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Jun 2020 15:09:08 +0000 (09:09 -0600)
commit13c7863d48c160152c42c62700a722293bddeca4
tree280a881afe71a1dad7e0d0897b4b3b8ef59ea4da
parenta5b97526bf2860fe8306959f19ee428d1f5cc732
block: move the initial blkg lookup into blkg_tryget_closest

By moving the initial blkg lookup into blkg_tryget_closest we get
a nicely self contained routines that does all the RCU locking.

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