]> git.baikalelectronics.ru Git - kernel.git/commit
block, bfq: fix switch back from soft-rt weitgh-raising
authorPaolo Valente <paolo.valente@linaro.org>
Mon, 25 Jan 2021 19:02:45 +0000 (20:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 21:18:32 +0000 (14:18 -0700)
commit22bbe906ef58e1dc56ef2995d100cdfd20ba1d0e
tree38c8aee3d42fb1194c8b6daae7c73837d6dfb51b
parentd5a1fc8984953bff1a981034fffa9c4c76ef70e0
block, bfq: fix switch back from soft-rt weitgh-raising

A bfq_queue may happen to be deemed as soft real-time while it is
still enjoying interactive weight-raising. If this happens because of
a false positive, then the bfq_queue is likely to loose its soft
real-time status soon. Upon losing such a status, the bfq_queue must
get back its interactive weight-raising, if its interactive period is
not over yet. But this case is not handled. This commit corrects this
error.

Tested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c