]> git.ipfire.org Git - thirdparty/linux.git/commit - block/bfq-wf2q.c
block, bfq: always update the budget of an entity when needed
authorPaolo Valente <paolo.valente@linaro.org>
Thu, 16 Aug 2018 16:51:16 +0000 (18:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Aug 2018 19:08:12 +0000 (13:08 -0600)
commite02a0aa26bf61b6e481a3d7453a150e692b0df80
tree5e175d59711d0dea226ccc6dc33578545f211f44
parent8a511ba5feec5947bee0635cff8bd796d5f77e3e
block, bfq: always update the budget of an entity when needed

When the next child entity to serve changes for a given parent entity,
the budget of that parent entity must be updated accordingly.
Unfortunately, this update is not performed, by mistake, for the
entities that happen to switch from having no child entity to serve,
to having one child entity to serve.

Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-wf2q.c