]> 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)
commit2480153aef764cc370e740fe37c215a0d67e703d
tree40923487d04cea7b18a8950bfd6f0e45820edbe2
parent25840fa9847e9a9212edf780c6b290cfe8e5986e
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