Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kthread: Include kthreadd to the managed affinity list

The unbound kthreads affinity management performed by cpuset is going to
be imported to the kthread core code for consolidation purposes.

Treat kthreadd just like any other kthread.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Waiman Long <longman@redhat.com>
Cc: Marco Crivellari <marco.crivellari@suse.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Waiman Long <longman@redhat.com>

+2 -1
+2 -1
kernel/kthread.c
··· 818 818 /* Setup a clean context for our children to inherit. */ 819 819 set_task_comm(tsk, comm); 820 820 ignore_signals(tsk); 821 - set_cpus_allowed_ptr(tsk, housekeeping_cpumask(HK_TYPE_KTHREAD)); 822 821 set_mems_allowed(node_states[N_MEMORY]); 823 822 824 823 current->flags |= PF_NOFREEZE; 825 824 cgroup_init_kthreadd(); 825 + 826 + kthread_affine_node(); 826 827 827 828 for (;;) { 828 829 set_current_state(TASK_INTERRUPTIBLE);