aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/block/bfq-iosched.c
diff options
context:
space:
mode:
authorPaolo Valente <paolo.valente@linaro.org>2020-02-03 11:40:56 +0100
committerJens Axboe <axboe@kernel.dk>2020-02-03 06:58:15 -0700
commitecedd3d7e19911ab8fe42f17b77c0a30fe7f4db3 (patch)
tree604e9e103322c6b4708d9fcf8ecd2e24be6c92e8 /block/bfq-iosched.c
parentblock, bfq: do not insert oom queue into position tree (diff)
downloadwireguard-linux-ecedd3d7e19911ab8fe42f17b77c0a30fe7f4db3.tar.xz
wireguard-linux-ecedd3d7e19911ab8fe42f17b77c0a30fe7f4db3.zip
block, bfq: get extra ref to prevent a queue from being freed during a group move
In bfq_bfqq_move(), the bfq_queue, say Q, to be moved to a new group may happen to be deactivated in the scheduling data structures of the source group (and then activated in the destination group). If Q is referred only by the data structures in the source group when the deactivation happens, then Q is freed upon the deactivation. This commit addresses this issue by getting an extra reference before the possible deactivation, and releasing this extra reference after Q has been moved. Tested-by: Chris Evich <cevich@redhat.com> Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name> Signed-off-by: Paolo Valente <paolo.valente@linaro.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-iosched.c')
0 files changed, 0 insertions, 0 deletions