On 6/9/21 1:07 AM, Bart Van Assche wrote: > Maintain statistics per cgroup and export these to user space. These > statistics are essential for verifying whether the proper I/O priorities > have been assigned to requests. With this patch applied the output of > (cd /sys/fs/cgroup/blkio/ && ls) is as follows: > blkio.dd.dispatched_pri0 blkio.dd.inserted_pri3 cgroup.clone_children > blkio.dd.dispatched_pri1 blkio.dd.merged_pri0 cgroup.procs > blkio.dd.dispatched_pri2 blkio.dd.merged_pri1 cgroup.sane_behavior > blkio.dd.dispatched_pri3 blkio.dd.merged_pri2 notify_on_release > blkio.dd.inserted_pri0 blkio.dd.merged_pri3 release_agent > blkio.dd.inserted_pri1 blkio.prio.class tasks > blkio.dd.inserted_pri2 blkio.reset_stats > > Cc: Damien Le Moal <damien.lemoal@xxxxxxx> > Cc: Hannes Reinecke <hare@xxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: Ming Lei <ming.lei@xxxxxxxxxx> > Cc: Johannes Thumshirn <johannes.thumshirn@xxxxxxx> > Cc: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx> > Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> > --- > block/Kconfig.iosched | 6 + > block/Makefile | 2 + > block/mq-deadline-cgroup.c | 185 ++++++++++++++++++++ > block/mq-deadline-cgroup.h | 112 ++++++++++++ > block/{mq-deadline.c => mq-deadline-main.c} | 85 +++++++-- > 5 files changed, 376 insertions(+), 14 deletions(-) > create mode 100644 block/mq-deadline-cgroup.c > create mode 100644 block/mq-deadline-cgroup.h > rename block/{mq-deadline.c => mq-deadline-main.c} (94%) > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@xxxxxxx +49 911 74053 688 SUSE Software Solutions Germany GmbH, 90409 Nürnberg GF: F. Imendörffer, HRB 36809 (AG Nürnberg)