summaryrefslogtreecommitdiff
path: root/block/genhd.c
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-03-27 10:51:33 -0700
committerJens Axboe <axboe@fb.com>2017-03-28 08:02:20 -0600
commitb22c417c885ea973149ecf56286aabec060153e2 (patch)
treefcf3e890a2eb1f186882ade5b810f3fe522dc2c0 /block/genhd.c
parentcd5ab1b0fcb44ab5d00358edc9b0b2e2a966fb22 (diff)
blk-throttle: configure bps/iops limit for cgroup in low limit
each queue will have a state machine. Initially queue is in LIMIT_LOW state, which means all cgroups will be throttled according to their low limit. After all cgroups with low limit cross the limit, the queue state gets upgraded to LIMIT_MAX state. For max limit, cgroup will use the limit configured by user. For low limit, cgroup will use the minimal value between low limit and max limit configured by user. If the minimal value is 0, which means the cgroup doesn't configure low limit, we will use max limit to throttle the cgroup and the cgroup is ready to upgrade to LIMIT_MAX Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions