commit | 902ec5b6de0678ac2effba0faaafdd1c3e7fcf2e | [log] [tgz] |
---|---|---|
author | Shaohua Li <shli@fb.com> | Thu Sep 14 14:02:06 2017 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Sep 26 07:41:22 2017 -0600 |
tree | 1e3c7ab62c68cd37e81a13f46bceba374c5ea5ae | |
parent | af551fb3be26a22b7a6b345b3b7e7e6acfc41758 [diff] |
block: make blkcg aware of kthread stored original cgroup info bio_blkcg is the only API to get cgroup info for a bio right now. If bio_blkcg finds current task is a kthread and has original blkcg associated, it will use the css instead of associating the bio to current task. This makes it possible that kthread dispatches bios on behalf of other threads. Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>