]> git.baikalelectronics.ru Git - kernel.git/commit
blk-throttle: add .low interface
authorShaohua Li <shli@fb.com>
Mon, 27 Mar 2017 17:51:32 +0000 (10:51 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 28 Mar 2017 14:02:20 +0000 (08:02 -0600)
commit9f602c1d32fdea054c2b0cff615f3bf408d7324e
tree40923487d04cea7b18a8950bfd6f0e45820edbe2
parent25a3742be4b0bfb127ae3c1c972bda59e927cc60
blk-throttle: add .low interface

Add low limit for cgroup and corresponding cgroup interface. To be
consistent with memcg, we allow users configure .low limit higher than
.max limit. But the internal logic always assumes .low limit is lower
than .max limit. So we add extra bps/iops_conf fields in throtl_grp for
userspace configuration. Old bps/iops fields in throtl_grp will be the
actual limit we use for throttling.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-throttle.c