]> git.baikalelectronics.ru Git - kernel.git/commit
block: introduce bio_issue_as_root_blkg
authorJosef Bacik <jbacik@fb.com>
Tue, 3 Jul 2018 15:14:51 +0000 (11:14 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:53 +0000 (09:07 -0600)
commit0c0c08fe005320bd70db8c4bc1eae97b6e3f01bf
treeab365652b13fbcd75c32267e377f41a42eef97d2
parentf488465985a23676096b84322210aea475fe9697
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>
include/linux/blk-cgroup.h