]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: add blkio_policy[] array and allow one policy per policy ID
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:15:04 +0000 (13:15 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:22 +0000 (21:27 +0100)
commit4da2e0bdaaa3a07f0bd743efb4758db3d35f82c3
tree6a712eb1b505e8163d28f8709980e581a08b572c
parent98db41dc02d48e05d1b4764b132e6728de84c284
blkcg: add blkio_policy[] array and allow one policy per policy ID

Block cgroup policies are maintained in a linked list and,
theoretically, multiple policies sharing the same policy ID are
allowed.

This patch temporarily restricts one policy per plid and adds
blkio_policy[] array which indexes registered policy types by plid.
Both the restriction and blkio_policy[] array are transitional and
will be removed once API cleanup is complete.

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