Commit adf0a9d3 authored by Paolo Valente's avatar Paolo Valente Committed by Cheng Jian
Browse files

block, bfq: turn put_queue into release_process_ref in __bfq_bic_change_cgroup



mainline inclusion
from mainline-5.7-rc1
commit c8997736
category: bugfix
bugzilla: 50775
CVE: NA

bfq_release_process_ref() was introduced by commit 478de338 ("block,
bfq: deschedule empty bfq_queues not referred by any process"), however,
this patch is not related to this issue and involved with other patches,
thus we defined it here instead of backport the patch.

---------------------------

A bfq_put_queue() may be invoked in __bfq_bic_change_cgroup(). The
goal of this put is to release a process reference to a bfq_queue. But
process-reference releases may trigger also some extra operation, and,
to this goal, are handled through bfq_release_process_ref(). So, turn
the invocation of bfq_put_queue() into an invocation of
bfq_release_process_ref().

Tested-by: default avatar <cki-project@redhat.com>
Signed-off-by: default avatarPaolo Valente <paolo.valente@linaro.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Reviewed-by: default avatarYufen Yu <yuyufen@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 5efbe561
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment