summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2019-09-04 12:45:53 -0700
committerJens Axboe <axboe@kernel.dk>2019-09-10 12:31:39 -0600
commite1518f63f246831af222758ead022cd40e79fab8 (patch)
tree3d7868912f57e6b10947dbf955e157ebbd3279b2 /tools
parent36a524814ff3e5d5385f42d30152fe8c5e1fd2c1 (diff)
blk-iocost: Don't let merges push vtime into the future
Merges have the same problem that forced-bios had which is fixed by the previous patch. The cost of a merge is calculated at the time of issue and force-advances vtime into the future. Until global vtime catches up, how the cgroup's hweight changes in the meantime doesn't matter and it often leads to situations where the cost is calculated at one hweight and paid at a very different one. See the previous patch for more details. Fix it by never advancing vtime into the future for merges. If budget is available, vtime is advanced. Otherwise, the cost is charged as debt. This brings merge cost handling in line with issue cost handling in ioc_rqos_throttle(). Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions