block: Introduce the ioprio rq-qos policy
Introduce an rq-qos policy that assigns an I/O priority to requests based on blk-cgroup configuration settings. This policy has the following advantages over the ioprio_set() system call: - This policy is cgroup based so it has all the advantages of cgroups. - While ioprio_set() does not affect page cache writeback I/O, this rq-qos controller affects page cache writeback I/O for filesystems that support assiociating a cgroup with writeback I/O. See also Documentation/admin-guide/cgroup-v2.rst. Cc: Damien Le Moal <damien.lemoal@wdc.com> Cc: Hannes Reinecke <hare@suse.de> Cc: Christoph Hellwig <hch@lst.de> Cc: Ming Lei <ming.lei@redhat.com> Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com> Cc: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by:Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20210618004456.7280-5-bvanassche@acm.org Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- Documentation/admin-guide/cgroup-v2.rst 55 additions, 0 deletionsDocumentation/admin-guide/cgroup-v2.rst
- block/Kconfig 9 additions, 0 deletionsblock/Kconfig
- block/Makefile 1 addition, 0 deletionsblock/Makefile
- block/blk-cgroup.c 5 additions, 0 deletionsblock/blk-cgroup.c
- block/blk-ioprio.c 262 additions, 0 deletionsblock/blk-ioprio.c
- block/blk-ioprio.h 19 additions, 0 deletionsblock/blk-ioprio.h
- block/blk-mq-debugfs.c 2 additions, 0 deletionsblock/blk-mq-debugfs.c
- block/blk-rq-qos.h 1 addition, 0 deletionsblock/blk-rq-qos.h
Loading
Please register or sign in to comment