Commit ebe0cb55 authored by Yu Kuai's avatar Yu Kuai Committed by Li Nan
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>
parent 3fcd5793
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment