[PATCH -mmotm] fix more cpuset breakage

From: Randy Dunlap
Date: Wed Jan 28 2009 - 22:24:51 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Not everyone uses cpusets, so fix the b0rked build (part 2):

kernel/kthread.c:243: error: 'struct task_struct' has no member named 'mems_allowed'

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
kernel/kthread.c | 2 ++
1 file changed, 2 insertions(+)

--- mmotm-2009-0128-1742.orig/kernel/kthread.c
+++ mmotm-2009-0128-1742/kernel/kthread.c
@@ -240,7 +240,9 @@ int kthreadd(void *unused)
set_user_nice(tsk, KTHREAD_NICE_LEVEL);
set_cpus_allowed_ptr(tsk, CPU_MASK_ALL_PTR);

+#ifdef CONFIG_CPUSETS
current->mems_allowed = node_possible_map;
+#endif
current->flags |= PF_NOFREEZE | PF_FREEZER_NOSIG;

for (;;) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/