Skip to content

Commit 6dfec8d

Browse files
bsegall@google.comingomolnar
authored andcommitted
sched/numa: Check sched_feat(NUMA) in migrate_improves_locality()
migrate_improves_locality checked sched_feat(NUMA_FAVOUR_HIGHER) but not sched_feat(NUMA), so disabling just the NUMA feature would leave it working off of old data. Signed-off-by: Ben Segall <bsegall@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mel Gorman <mgorman@suse.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/xm26si9rtqbm.fsf@sword-of-the-dawn.mtv.corp.google.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent d49db34 commit 6dfec8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/sched/fair.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5680,8 +5680,8 @@ static bool migrate_improves_locality(struct task_struct *p, struct lb_env *env)
56805680
unsigned long src_faults, dst_faults;
56815681
int src_nid, dst_nid;
56825682

5683-
if (!sched_feat(NUMA_FAVOUR_HIGHER) || !p->numa_faults ||
5684-
!(env->sd->flags & SD_NUMA)) {
5683+
if (!sched_feat(NUMA) || !sched_feat(NUMA_FAVOUR_HIGHER) ||
5684+
!p->numa_faults || !(env->sd->flags & SD_NUMA)) {
56855685
return false;
56865686
}
56875687

0 commit comments

Comments
 (0)