OSDN Git Service

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)
commitd1f600fa4732dac36c71a03b790f0c829a076475
tree38c8aee3d42fb1194c8b6daae7c73837d6dfb51b
parent7f1995c27b19060dbdff23442f375e3097c90707
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