From 2e656f78ec309bd2c939d9281e4fdc6bb5d2007c Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 16 Dec 2011 15:49:21 +1100 Subject: [PATCH] cpusets-stall-when-updating-mems_allowed-for-mempolicy-or-disjoint-nodemask-fix stupid temporary hack to make it build with CONFIG_NUMA=n Cc: David Rientjes Cc: KOSAKI Motohiro Cc: Miao Xie Cc: Paul Menage Reported-by: Stephen Rothwell Signed-off-by: Andrew Morton --- kernel/cpuset.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 4f1d3ddd181f..e8ed75afb755 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c @@ -968,7 +968,10 @@ repeat: * tsk does not have a mempolicy, then an empty nodemask will not be * possible when mems_allowed is larger than a word. */ - need_loop = tsk->mempolicy || + need_loop = +#ifdef CONFIG_NUMA + tsk->mempolicy || +#endif !nodes_intersects(*newmems, tsk->mems_allowed); nodes_or(tsk->mems_allowed, tsk->mems_allowed, *newmems); mpol_rebind_task(tsk, newmems, MPOL_REBIND_STEP1); -- 2.39.5