]> git.baikalelectronics.ru Git - kernel.git/commit
block, bfq: save & resume weight on a queue merge/split
authorFrancesco Pollicino <fra.fra.800@gmail.com>
Tue, 12 Mar 2019 08:59:34 +0000 (09:59 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Apr 2019 14:15:40 +0000 (08:15 -0600)
commite1b9640f8a7130bd49593e8934033a909ed2040b
tree2ea5b0643ecf6adf4971033b21deaa9cbae63f03
parent021cbbb441f8f8fa0b68f0e0445fd95ef61a4d89
block, bfq: save & resume weight on a queue merge/split

bfq saves the state of a queue each time a merge occurs, to be
able to resume such a state when the queue is associated again
with its original process, on a split.

Unfortunately bfq does not save & restore also the weight of the
queue. If the weight is not correctly resumed when the queue is
recycled, then the weight of the recycled queue could differ
from the weight of the original queue.

This commit adds the missing save & resume of the weight.

Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Signed-off-by: Francesco Pollicino <fra.fra.800@gmail.com>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c
block/bfq-iosched.h