sunrpc: use better NUMA affinities
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 28 Jul 2011 18:04:09 +0000 (20:04 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Aug 2011 17:25:36 +0000 (13:25 -0400)
commit11fd165c68b73434ca1273e21f21db5eecc90926
tree75c3e2d97b2d59ebaaa4571df2ead80a4c4f35a5
parentc1f24ef4ed46f58ea5e524a2364c93b6847fb164
sunrpc: use better NUMA affinities

Use NUMA aware allocations to reduce latencies and increase throughput.

sunrpc kthreads can use kthread_create_on_node() if pool_mode is
"percpu" or "pernode", and svc_prepare_thread()/svc_init_buffer() can
also take into account NUMA node affinity for memory allocations.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: "J. Bruce Fields" <bfields@fieldses.org>
CC: Neil Brown <neilb@suse.de>
CC: David Miller <davem@davemloft.net>
Reviewed-by: Greg Banks <gnb@fastmail.fm>
[bfields@redhat.com: fix up caller nfs41_callback_up]
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/svc.c
fs/nfs/callback.c
include/linux/sunrpc/svc.h
net/sunrpc/svc.c