]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/blk-throttle.c
blk-throttle: add hierarchy support for latency target and idle time
authorShaohua Li <shli@fb.com>
Wed, 17 May 2017 20:07:24 +0000 (13:07 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 22 May 2017 20:47:12 +0000 (14:47 -0600)
commit5b81fc3cc625e857275573cb4240bbab553f919c
treeea36cd79d9bf4ba855d231826d5bf17a58fd0242
parent08332893e37af6ae779367e78e444f8f9571511d
blk-throttle: add hierarchy support for latency target and idle time

For idle time, children's setting should not be bigger than parent's.
For latency target, children's setting should not be smaller than
parent's. The leaf nodes will adjust their settings according to the
hierarchy and compare their IO with the settings and do
upgrade/downgrade. parents nodes don't need to track their IO
latency/idle time.

Signed-off-by: Shaohua Li <shli@fb.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-throttle.c