diff options
author | Paolo Valente <paolo.valente@linaro.org> | 2019-01-29 14:06:27 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-01-31 22:50:23 +0300 |
commit | f3218ad8c6acc9b874060814d6d3ddf154463ac9 (patch) | |
tree | 6f5be115aed4028905240b168f8d4ab9728c519e /block/bfq-iosched.h | |
parent | 218cb897be6940b8d18eec9bcb32eaa28f1ae8ee (diff) | |
download | linux-f3218ad8c6acc9b874060814d6d3ddf154463ac9.tar.xz |
block, bfq: make sure queue budgets are not below service received
With some unlucky sequences of events, the function bfq_updated_next_req
updates the current budget of a bfq_queue to a lower value than the
service received by the queue using such a budget. Unfortunately, if
this happens, then the return value of the function bfq_bfqq_budget_left
becomes inconsistent. This commit solves this problem by lower-bounding
the budget computed in bfq_updated_next_req to the service currently
charged to the queue.
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-iosched.h')
0 files changed, 0 insertions, 0 deletions