Commit 0d923635 authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman

staging: lustre: bind socklnd peers to a specific CPT

Currently the socklnd driver doesn't support
CPT affinity for its peers. Binding peers to
a specific CPT and memory allocated to the
NUMA node belonging to the CPT should give a
performance boost.
Signed-off-by: default avatarJames Simmons <uja.ornl@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7245
Reviewed-on: http://review.whamcloud.com/16710Reviewed-by: default avatarOlaf Weber <olaf@sgi.com>
Reviewed-by: default avatarAmir Shehata <amir.shehata@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 27d81ace
...@@ -102,6 +102,7 @@ ksocknal_destroy_route(ksock_route_t *route) ...@@ -102,6 +102,7 @@ ksocknal_destroy_route(ksock_route_t *route)
static int static int
ksocknal_create_peer(ksock_peer_t **peerp, lnet_ni_t *ni, lnet_process_id_t id) ksocknal_create_peer(ksock_peer_t **peerp, lnet_ni_t *ni, lnet_process_id_t id)
{ {
int cpt = lnet_cpt_of_nid(id.nid);
ksock_net_t *net = ni->ni_data; ksock_net_t *net = ni->ni_data;
ksock_peer_t *peer; ksock_peer_t *peer;
...@@ -109,7 +110,7 @@ ksocknal_create_peer(ksock_peer_t **peerp, lnet_ni_t *ni, lnet_process_id_t id) ...@@ -109,7 +110,7 @@ ksocknal_create_peer(ksock_peer_t **peerp, lnet_ni_t *ni, lnet_process_id_t id)
LASSERT(id.pid != LNET_PID_ANY); LASSERT(id.pid != LNET_PID_ANY);
LASSERT(!in_interrupt()); LASSERT(!in_interrupt());
LIBCFS_ALLOC(peer, sizeof(*peer)); LIBCFS_CPT_ALLOC(peer, lnet_cpt_table(), cpt, sizeof(*peer));
if (!peer) if (!peer)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment