Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753696AbbGGGtf (ORCPT ); Tue, 7 Jul 2015 02:49:35 -0400 Received: from terminus.zytor.com ([198.137.202.10]:57577 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751067AbbGGGt1 (ORCPT ); Tue, 7 Jul 2015 02:49:27 -0400 Date: Mon, 6 Jul 2015 23:48:44 -0700 From: "tip-bot for bsegall@google.com" Message-ID: Cc: mingo@kernel.org, tglx@linutronix.de, peterz@infradead.org, hpa@zytor.com, mgorman@suse.de, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, bsegall@google.com Reply-To: bsegall@google.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, mgorman@suse.de, hpa@zytor.com, peterz@infradead.org, tglx@linutronix.de, mingo@kernel.org In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/numa: Check sched_feat(NUMA) in migrate_improves_locality() Git-Commit-ID: 6dfec8d9493f48a42896386b41ec1a4644331b0b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1829 Lines: 45 Commit-ID: 6dfec8d9493f48a42896386b41ec1a4644331b0b Gitweb: http://git.kernel.org/tip/6dfec8d9493f48a42896386b41ec1a4644331b0b Author: bsegall@google.com AuthorDate: Tue, 16 Jun 2015 12:18:21 -0700 Committer: Ingo Molnar CommitDate: Tue, 7 Jul 2015 08:46:09 +0200 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 Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Mel Gorman Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/xm26si9rtqbm.fsf@sword-of-the-dawn.mtv.corp.google.com Signed-off-by: Ingo Molnar --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index d113c3b..98b2b96 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5680,8 +5680,8 @@ static bool migrate_improves_locality(struct task_struct *p, struct lb_env *env) unsigned long src_faults, dst_faults; int src_nid, dst_nid; - if (!sched_feat(NUMA_FAVOUR_HIGHER) || !p->numa_faults || - !(env->sd->flags & SD_NUMA)) { + if (!sched_feat(NUMA) || !sched_feat(NUMA_FAVOUR_HIGHER) || + !p->numa_faults || !(env->sd->flags & SD_NUMA)) { return false; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/