blk-cgroup: allow controllers to output their own stats
authorJosef Bacik <jbacik@fb.com>
Tue, 3 Jul 2018 15:14:52 +0000 (11:14 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:54 +0000 (09:07 -0600)
commit903d23f0a354f226fa78f1c1c34b60aaf992e812
treec74a26a70450653725e8d5bf25a77eb56586f245
parentc7c98fd37653955d3a17dd4f1fa67aba070096a9
blk-cgroup: allow controllers to output their own stats

blk-iolatency has a few stats that it would like to print out, and
instead of adding a bunch of crap to the generic code just provide a
helper so that controllers can add stuff to the stat line if they want
to.

Hide it behind a boot option since it changes the output of io.stat from
normal, and these stats are only interesting to developers.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
include/linux/blk-cgroup.h