Re: [RFC] blk-throttle: export io_serviced_recursive, io_service_bytes_recursive
On 12/11/17 7:56 AM, weiping zhang wrote: > export these two interface for cgroup-v1. Applied, thanks. -- Jens Axboe
Re: [RFC] blk-throttle: export io_serviced_recursive, io_service_bytes_recursive
2017-12-11 23:17 GMT+08:00 Tejun Heo: > On Mon, Dec 11, 2017 at 10:56:25PM +0800, weiping zhang wrote: >> export these two interface for cgroup-v1. >> >> Signed-off-by: weiping zhang > > Acked-by: Tejun Heo > Hi Jens, Have you got time to check this patch ? Thanks > Thanks. > > -- > tejun
Re: [RFC] blk-throttle: export io_serviced_recursive, io_service_bytes_recursive
2017-12-11 23:17 GMT+08:00 Tejun Heo: > On Mon, Dec 11, 2017 at 10:56:25PM +0800, weiping zhang wrote: >> export these two interface for cgroup-v1. >> >> Signed-off-by: weiping zhang > > Acked-by: Tejun Heo > > Thanks. > Hi Jens, these two interface are useful to collect blkcg info, would you pick it up ? Thanks
[RFC] blk-throttle: export io_serviced_recursive, io_service_bytes_recursive
export these two interface for cgroup-v1. Signed-off-by: weiping zhang--- block/blk-throttle.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 96ad326..1d7637f 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)_policy_throtl, + .seq_show = blkg_print_stat_bytes_recursive, + }, + { .name = "throttle.io_serviced", .private = (unsigned long)_policy_throtl, .seq_show = blkg_print_stat_ios, }, + { + .name = "throttle.io_serviced_recursive", + .private = (unsigned long)_policy_throtl, + .seq_show = blkg_print_stat_ios_recursive, + }, { } /* terminate */ }; -- 2.9.4