blkcg: add blkcg_{init|drain|exit}_queue()
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:15:12 +0000 (13:15 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:23 +0000 (21:27 +0100)
commit5efd611351d1a847c72d74fb12ff4bd187c0cb2c
treebac28206d088426ab872eea98155cc100bd8d9b1
parent7ee9c5620504906e98451dc9a1945b2b9e892cb8
blkcg: add blkcg_{init|drain|exit}_queue()

Currently block core calls directly into blk-throttle for init, drain
and exit.  This patch adds blkcg_{init|drain|exit}_queue() which wraps
the blk-throttle functions.  This is to give more control and
visiblity to blkcg core layer for proper layering.  Further patches
will add logic common to blkcg policies to the functions.

While at it, collapse blk_throtl_release() into blk_throtl_exit().
There's no reason to keep them separate.

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