summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorweiping zhang <zhangweiping@didichuxing.com>2017-12-11 22:56:25 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:33:26 +0800
commit1b9137ac5c5d2d33d965e5c61a87d4025a49400e (patch)
tree96ab0e11ff56824626ce451471db7620e62cb5ab /block
parentd5f07ad97fc0d4913a318b8cfcc3bf90602aac61 (diff)
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> (cherry picked from commit 17534c6f2c065ad8e34ff6f013e5afaa90428512)
Diffstat (limited to 'block')
-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 a8cd7b3d9647..80862cf4734a 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -1512,10 +1512,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 */
};