]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: update blkg get functions take blkio_cgroup as parameter
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:15:02 +0000 (13:15 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:22 +0000 (21:27 +0100)
commit2862f18007a2e83963e5783b7101a5e2a40db54b
tree271f62b5f75c239831c7def1c445a6e990366730
parent52eaa8bc6700009aa1cf61fc63e6a550210627a5
blkcg: update blkg get functions take blkio_cgroup as parameter

In both blkg get functions - throtl_get_tg() and cfq_get_cfqg(),
instead of obtaining blkcg of %current explicitly, let the caller
specify the blkcg to use as parameter and make both functions hold on
to the blkcg.

This is part of block cgroup interface cleanup and will help making
blkcg API more modular.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c
block/cfq-iosched.c