From: Peter Zijlstra Date: Mon, 10 Nov 2014 09:54:35 +0000 (+0100) Subject: sched/numa: Avoid selecting oneself as swap target X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~94^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7af683350cb0ddd0e9d3819b4eb7abe9e2d3e709;p=pandora-kernel.git sched/numa: Avoid selecting oneself as swap target Because the whole numa task selection stuff runs with preemption enabled (its long and expensive) we can end up migrating and selecting oneself as a swap target. This doesn't really work out well -- we end up trying to acquire the same lock twice for the swap migrate -- so avoid this. Reported-and-Tested-by: Sasha Levin Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Link: http://lkml.kernel.org/r/20141110100328.GF29390@twins.programming.kicks-ass.net Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed