diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2024-04-04 18:57:38 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-04-24 13:02:51 +0300 |
commit | cd18bec668bb6221a54f03d0b645b7aed841f825 (patch) | |
tree | a5a4bf006d45d6b9b039a20b0f66f0ebae1107a7 /kernel/sched | |
parent | 08a36a48544d73bf153960245aec6c5fa23960de (diff) | |
download | linux-cd18bec668bb6221a54f03d0b645b7aed841f825.tar.xz |
sched/fair: Fix update of rd->sg_overutilized
sg_overloaded is used instead of sg_overutilized to update
rd->sg_overutilized.
Fixes: 4475cd8bfd9b ("sched/balancing: Simplify the sg_status bitmask and use separate ->overloaded and ->overutilized flags")
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240404155738.2866102-1-vincent.guittot@linaro.org
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/fair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 1dd37168da50..bb1ae4ed0d91 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -10661,7 +10661,7 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd set_rd_overloaded(env->dst_rq->rd, sg_overloaded); /* Update over-utilization (tipping point, U >= 0) indicator */ - set_rd_overutilized(env->dst_rq->rd, sg_overloaded); + set_rd_overutilized(env->dst_rq->rd, sg_overutilized); } else if (sg_overutilized) { set_rd_overutilized(env->dst_rq->rd, sg_overutilized); } |