diff options
author | Paolo Valente <paolo.valente@linaro.org> | 2020-03-21 12:45:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-23 11:37:58 +0300 |
commit | 4c1bf587687a0ad2ada910e7817394cb80520560 (patch) | |
tree | 9d5feb5ce5820b5eda56415b3b24e18c8fada4f0 /drivers/firmware/stratix10-svc.c | |
parent | c49d414acda895e37ad54550c083a7657600d78b (diff) | |
download | linux-4c1bf587687a0ad2ada910e7817394cb80520560.tar.xz |
block, bfq: invoke flush_idle_tree after reparent_active_queues in pd_offline
commit 4d38a87fbb77fb9ff2ff4e914162a8ae6453eff5 upstream.
In bfq_pd_offline(), the function bfq_flush_idle_tree() is invoked to
flush the rb tree that contains all idle entities belonging to the pd
(cgroup) being destroyed. In particular, bfq_flush_idle_tree() is
invoked before bfq_reparent_active_queues(). Yet the latter may happen
to add some entities to the idle tree. It happens if, in some of the
calls to bfq_bfqq_move() performed by bfq_reparent_active_queues(),
the queue to move is empty and gets expired.
This commit simply reverses the invocation order between
bfq_flush_idle_tree() and bfq_reparent_active_queues().
Tested-by: cki-project@redhat.com
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/firmware/stratix10-svc.c')
0 files changed, 0 insertions, 0 deletions