• Eric Dumazet's avatar
    rcu: Use kthread_create_on_node() · 1f288094
    Eric Dumazet authored
    Commit a26ac245 (move TREE_RCU from softirq to kthread) added
    per-CPU kthreads.  However, kthread creation uses kthread_create(), which
    can put the kthread's stack and task struct on the wrong NUMA node.
    Therefore, use kthread_create_on_node() instead of kthread_create()
    so that the stacks and task structs are placed on the correct NUMA node.
    
    A similar change was carried out in commit 94dcf29a (kthread:
    use kthread_create_on_node()).
    
    Also change rcutorture's priority-boost-test kthread creation.
    Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
    CC: Tejun Heo <tj@kernel.org>
    CC: Rusty Russell <rusty@rustcorp.com.au>
    CC: Andrew Morton <akpm@linux-foundation.org>
    CC: Andi Kleen <ak@linux.intel.com>
    CC: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    1f288094
rcutree_plugin.h 58 KB