summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorweiping zhang <zhangweiping@didichuxing.com>2017-12-11 22:56:25 +0800
committerJens Axboe <axboe@kernel.dk>2018-01-18 12:55:55 -0700
commit17534c6f2c065ad8e34ff6f013e5afaa90428512 (patch)
tree075d77bb924aa8e4d05668676cd13e7f101bb7c0
parent2c2086afc2b8b974fac32cb028e73dc27bfae442 (diff)
downloadlinux-0-day-17534c6f2c065ad8e34ff6f013e5afaa90428512.tar.gz
linux-0-day-17534c6f2c065ad8e34ff6f013e5afaa90428512.tar.xz
blk-throttle: export io_serviced_recursive, io_service_bytes_recursive
export these two interface for cgroup-v1. Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: weiping zhang <zhangweiping@didichuxing.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--block/blk-throttle.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 825bc29767e66..e8428417ac0a7 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -1511,10 +1511,20 @@ static struct cftype throtl_legacy_files[] = {
.seq_show = blkg_print_stat_bytes,
},
{
+ .name = "throttle.io_service_bytes_recursive",
+ .private = (unsigned long)&blkcg_policy_throtl,
+ .seq_show = blkg_print_stat_bytes_recursive,
+ },
+ {
.name = "throttle.io_serviced",
.private = (unsigned long)&blkcg_policy_throtl,
.seq_show = blkg_print_stat_ios,
},
+ {
+ .name = "throttle.io_serviced_recursive",
+ .private = (unsigned long)&blkcg_policy_throtl,
+ .seq_show = blkg_print_stat_ios_recursive,
+ },
{ } /* terminate */
};