block, bfq: fix weight-raising resume with !low_latency
authorPaolo Valente <paolo.valente@linaro.org>
Thu, 4 Mar 2021 17:46:25 +0000 (18:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 Mar 2021 16:50:07 +0000 (10:50 -0600)
commit8c544770092a3d7532d01903b75721e537d87001
tree6edf02cf8f6160c4def62a44b62b79d6b571d204
parent8ef3fc3a043cd4b3dfdb260f02be5f65cc31445d
block, bfq: fix weight-raising resume with !low_latency

When the io_latency heuristic is off, bfq_queues must not start to be
weight-raised. Unfortunately, by mistake, this may happen when the
state of a previously weight-raised bfq_queue is resumed after a queue
split. This commit fixes this error.

Tested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Link: https://lore.kernel.org/r/20210304174627.161-5-paolo.valente@linaro.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c