Skip to content

Commit 17534c6

Browse files
weiping zhangaxboe
authored andcommitted
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>
1 parent 2c2086a commit 17534c6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

block/blk-throttle.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,11 +1510,21 @@ static struct cftype throtl_legacy_files[] = {
15101510
.private = (unsigned long)&blkcg_policy_throtl,
15111511
.seq_show = blkg_print_stat_bytes,
15121512
},
1513+
{
1514+
.name = "throttle.io_service_bytes_recursive",
1515+
.private = (unsigned long)&blkcg_policy_throtl,
1516+
.seq_show = blkg_print_stat_bytes_recursive,
1517+
},
15131518
{
15141519
.name = "throttle.io_serviced",
15151520
.private = (unsigned long)&blkcg_policy_throtl,
15161521
.seq_show = blkg_print_stat_ios,
15171522
},
1523+
{
1524+
.name = "throttle.io_serviced_recursive",
1525+
.private = (unsigned long)&blkcg_policy_throtl,
1526+
.seq_show = blkg_print_stat_ios_recursive,
1527+
},
15181528
{ } /* terminate */
15191529
};
15201530

0 commit comments

Comments
 (0)