Commit 29ec6e95 authored by Song Zhang's avatar Song Zhang Committed by zhangsong234
Browse files

sched/fair: Avoid offline tasks starve to death for priority load balance

euleros inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I60S5R


CVE: NA

Reference: NA

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

When priority load balance enabled for online/offline tasks co-location,
offline tasks maybe starve to death by load balance detach_tasks()
if env->loop exceed env->loop_max and can not be migrate to idle cpus.

So we should set env->loop to 0 and detach offline tasks again.

Fixes: fbfd4454 ("sched: Introduce priority load balance for CFS")

Signed-off-by: default avatarSong Zhang <zhangsong34@huawei.com>
parent 44113df5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment