From e37d5961912ab36b3a48b207995b7e14071f7a63 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 8 Dec 2011 15:32:04 +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 52917e56a396..fb147b2caa09 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