Whamcloud - gitweb
LU-7734 lnet: protect peer_ni credits
authorAmir Shehata <amir.shehata@intel.com>
Thu, 9 Jun 2016 08:17:45 +0000 (01:17 -0700)
committerAmir Shehata <amir.shehata@intel.com>
Wed, 25 Jan 2017 03:10:15 +0000 (19:10 -0800)
commite1526ef2b8446fbd9a5f8f8d6f2d5e02d1982a75
treea05252a60e79abcc28c9dc8aa9305d2dcfc44e98
parent362e52efec1a6f6fd43b16ccd555b714a30642da
LU-7734 lnet: protect peer_ni credits

Currently multiple NIs can talk to the same peer_ni. The per-CPT
lnet_net_lock therefore no longer protects the lpni against
concurrent updates. To resolve this issue a spinlock is added
to the lnet_peer_ni, which must be locked when the peer NI
credits, delayed message queue, and delayed routed message queue
are modified. The lock is not taken when reporting credits.

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Signed-off-by: Olaf Weber <olaf@sgi.com>
Change-Id: I52153680a74d43e595314b63487026cc3f6a5a8f
Reviewed-on: http://review.whamcloud.com/20702
lnet/include/lnet/lib-types.h
lnet/lnet/lib-move.c
lnet/lnet/peer.c
lnet/lnet/router.c
lnet/lnet/router_proc.c