Skip to content

Commit cd18bec

Browse files
vingu-linaroIngo Molnar
authored andcommitted
sched/fair: Fix update of rd->sg_overutilized
sg_overloaded is used instead of sg_overutilized to update rd->sg_overutilized. Fixes: 4475cd8 ("sched/balancing: Simplify the sg_status bitmask and use separate ->overloaded and ->overutilized flags") Signed-off-by: Vincent Guittot <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 08a36a4 commit cd18bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/fair.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10661,7 +10661,7 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd
1066110661
set_rd_overloaded(env->dst_rq->rd, sg_overloaded);
1066210662

1066310663
/* Update over-utilization (tipping point, U >= 0) indicator */
10664-
set_rd_overutilized(env->dst_rq->rd, sg_overloaded);
10664+
set_rd_overutilized(env->dst_rq->rd, sg_overutilized);
1066510665
} else if (sg_overutilized) {
1066610666
set_rd_overutilized(env->dst_rq->rd, sg_overutilized);
1066710667
}

0 commit comments

Comments
 (0)