]> git.baikalelectronics.ru Git - kernel.git/commit
block, bfq: push up injection only after setting service time
authorPaolo Valente <paolo.valente@linaro.org>
Thu, 22 Aug 2019 15:20:37 +0000 (17:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Sep 2019 02:03:49 +0000 (20:03 -0600)
commit0e4c892c67bd3d844e4020a150c0f33e754c1ee9
tree16500553ac438b09d4524e54ef069bfadbb03b27
parent81371d8784e90f3ef3775f46c5792792dd4ea5f1
block, bfq: push up injection only after setting service time

If equal to 0, the injection limit for a bfq_queue is pushed to 1
after a first sample of the total service time of the I/O requests of
the queue is computed (to allow injection to start). Yet, because of a
mistake in the branch that performs this action, the push may happen
also in some other case. This commit fixes this issue.

Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c