]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: implement task_get_blkcg_css()
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:13:23 +0000 (17:13 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:34 +0000 (08:33 -0600)
commit868e47b6f81aa074b6eaad92d506310d08ca6a5a
tree649a13a93cb5cf05c43bb7a9b91efd94c05fac29
parentc7d4e3e4feda92e4dacf9368d176b89e5ca83cd2
blkcg: implement task_get_blkcg_css()

Implement a wrapper around task_get_css() to acquire the blkcg css for
a given task.  The wrapper is necessary for cgroup writeback support
as there will be places outside blkcg proper trying to acquire
blkcg_css and blkio_cgrp_id will be undefined when !CONFIG_BLK_CGROUP.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blk-cgroup.h