]> www.infradead.org Git - users/hch/block.git/commit
block: bypass blkg_tryget_closest for the root_blkg
authorChristoph Hellwig <hch@lst.de>
Sat, 30 May 2020 13:56:37 +0000 (15:56 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 26 Jun 2020 13:27:34 +0000 (15:27 +0200)
commitd46cd7c977dc92e07943e90e0cab9c741f9dbd5f
tree93eb34c4cb77e2febf4e4d392da0d33a2d82093c
parent524492c6ac8fc6e5c8cf7fad3224e8759ead2130
block: bypass blkg_tryget_closest for the root_blkg

The root_blkg is only torn down at the very end of removing a queue.
So in the I/O submission path is always has a life reference and we
can just grab another one using blkg_get instead of doing a tryget
and parent walk that won't lead anywhere.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-cgroup.c