Commit 5eab3ce0 authored by zhangwei123171's avatar zhangwei123171
Browse files

sched/fair: fix qos_idle_h_nr_running in enqueue/dequeue

jingdong inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7X9JY



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

When the container switches from offline mode to online mode,
or from offline mode to online mode, qos_idle_h_nr_running
will count errors.

If task se is counted according to the online task when
it enters rq, then it must also be counted according to
the online task when it leaves the rq.

Fixes: 57b5487b ("sched/fair: Start tracking qos_offline tasks count in cfs_rq")
Signed-off-by: default avatarzhangwei123171 <zhangwei123171@jd.com>
Reviewed-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent 369da114
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment