]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/kthread.c
cpuset,mm: update tasks' mems_allowed in time
[net-next-2.6.git] / kernel / kthread.c
index 41c88fe40500399c76f0382d51a3fb05aef03211..7fa441333529588586cd5a538e7b1fbdd118fbfd 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/kthread.h>
 #include <linux/completion.h>
 #include <linux/err.h>
+#include <linux/cpuset.h>
 #include <linux/unistd.h>
 #include <linux/file.h>
 #include <linux/module.h>
@@ -236,6 +237,7 @@ int kthreadd(void *unused)
        ignore_signals(tsk);
        set_user_nice(tsk, KTHREAD_NICE_LEVEL);
        set_cpus_allowed_ptr(tsk, cpu_all_mask);
+       set_mems_allowed(node_possible_map);
 
        current->flags |= PF_NOFREEZE | PF_FREEZER_NOSIG;