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)
commitfd383c2d3cae146337cea809de0d622b8b887e6c
tree649a13a93cb5cf05c43bb7a9b91efd94c05fac29
parentec438699a9ae0856c2ce20a50dd39cdc7e92a732
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