]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitcd5ab1b0fcb44ab5d00358edc9b0b2e2a966fb22
tree40923487d04cea7b18a8950bfd6f0e45820edbe2
parent327ffb9b37a9df80dad4fa176fbf0c0fb1ac4ac0
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