Commit 637fce2f authored by Yu Kuai's avatar Yu Kuai Committed by openeuler-sync-bot
Browse files

blk-iocost: don't throttle bio if iocg is offlined

hulk inclusion
category: bugfix
bugzilla: 188107, https://gitee.com/openeuler/kernel/issues/I665S2


CVE: NA

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

bio will grab blkg reference, however, blkcg->online_pin is not grabbed,
hence cgroup can be removed after thread exit while bio is still in
progress. Bypass io in this suituation since it doesn't make sense to
throttle bio while cgroup is removed.

Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarLi Nan <linan122@huawei.com>
(cherry picked from commit ebe0cb55)
parent ddaab3ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment