aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>2018-09-11 14:41:35 -0400
committerJens Axboe <axboe@kernel.dk>2018-09-21 20:29:16 -0600
commite2b0989954ae7c80609f77e7ce203bea6d2c54e1 (patch)
tree7535c7f39e57d02ae1ff497ca28c339c4be80e65 /block
parentblkcg: remove additional reference to the css (diff)
downloadlinux-dev-e2b0989954ae7c80609f77e7ce203bea6d2c54e1.tar.xz
linux-dev-e2b0989954ae7c80609f77e7ce203bea6d2c54e1.zip
blkcg: cleanup and make blk_get_rl use blkg_lookup_create
blk_get_rl is responsible for identifying which request_list a request should be allocated to. Try get logic was added earlier, but semantically the logic was not changed. This patch makes better use of the bio already having a reference to the blkg in the hot path. The cold path uses a better fallback of blkg_lookup_create rather than just blkg_lookup and then falling back to the q->root_rl. If lookup_create fails with anything but -ENODEV, it falls back to q->root_rl. A clarifying comment is added to explain why q->root_rl is used rather than the root blkg's rl. Signed-off-by: Dennis Zhou <dennisszhou@gmail.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions