• Dennis Zhou (Facebook)'s avatar
    blkcg: cleanup and make blk_get_rl use blkg_lookup_create · e2b09899
    Dennis Zhou (Facebook) authored
    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: default avatarDennis Zhou <dennisszhou@gmail.com>
    Acked-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    e2b09899
Name
Last commit
Last update
Documentation Loading commit data...
LICENSES Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.clang-format Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...