504f52b543
All kthreads being created from a single helper task, they all use memory from a single node for their kernel stack and task struct. This patch suite creates kthread_create_on_cpu(), adding a 'cpu' parameter to parameters already used by kthread_create(). This parameter serves in allocating memory for the new kthread on its memory node if available. Users of this new function are : ksoftirqd, kworker, migration, pktgend... This patch: Add a node parameter to alloc_task_struct(), and change its name to alloc_task_struct_node() This change is needed to allow NUMA aware kthread_create_on_cpu() Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: David S. Miller <davem@davemloft.net> Reviewed-by: Andi Kleen <ak@linux.intel.com> Acked-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Tejun Heo <tj@kernel.org> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: David Howells <dhowells@redhat.com> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
a.out-core.h | ||
apic.h | ||
arch_hweight.h | ||
asm-offsets.h | ||
auxvec.h | ||
bugs.h | ||
cache.h | ||
checksum.h | ||
common.lds.S | ||
cputime.h | ||
current.h | ||
delay.h | ||
desc.h | ||
device.h | ||
dma.h | ||
emergency-restart.h | ||
fixmap.h | ||
ftrace.h | ||
futex.h | ||
hardirq.h | ||
hw_irq.h | ||
io.h | ||
irq_regs.h | ||
irq_vectors.h | ||
irq.h | ||
irqflags.h | ||
kdebug.h | ||
kmap_types.h | ||
mmu_context.h | ||
mmu.h | ||
mutex.h | ||
page_offset.h | ||
page.h | ||
param.h | ||
pci.h | ||
pda.h | ||
pgalloc.h | ||
pgtable-2level.h | ||
pgtable-3level.h | ||
pgtable.h | ||
processor-generic.h | ||
ptrace-generic.h | ||
required-features.h | ||
sections.h | ||
segment.h | ||
setup.h | ||
smp.h | ||
system.h | ||
thread_info.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
topology.h | ||
uaccess.h | ||
xor.h |