summaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2018-07-03 17:14:51 +0200
committerJens Axboe <axboe@kernel.dk>2018-07-09 17:07:53 +0200
commitc7c98fd37653955d3a17dd4f1fa67aba070096a9 (patch)
treeab365652b13fbcd75c32267e377f41a42eef97d2 /block/blk-cgroup.c
parentblock: add bi_blkg to the bio for cgroups (diff)
downloadlinux-c7c98fd37653955d3a17dd4f1fa67aba070096a9.tar.xz
linux-c7c98fd37653955d3a17dd4f1fa67aba070096a9.zip
block: introduce bio_issue_as_root_blkg
Instead of forcing all file systems to get the right context on their bio's, simply check for REQ_META to see if we need to issue as the root blkg. We don't want to force all bio's to have the root blkg associated with them if REQ_META is set, as some controllers (blk-iolatency) need to know who the originating cgroup is so it can backcharge them for the work they are doing. This helper will make sure that the controllers do the proper thing wrt the IO priority and backcharging. Signed-off-by: Josef Bacik <jbacik@fb.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.c')
0 files changed, 0 insertions, 0 deletions