Skip to contentSkip to conversation

blk-throttle: export io_serviced_recursive, io_service_bytes_recursive

RFC Applied weiping zhang 4 participants 5 messages Dec 11, 2017 – Jan 18, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

RFC 1/1 blk-throttle: export io_serviced_recursive, io_service_bytes_recursive

export these two interface for cgroup-v1.

---
 block/blk-throttle.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
block/blk-throttle.c +10 -0
index 96ad326..1d7637f 100644
@@ -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 */
 };
 
Signature · 1 line
2.9.4