Whamcloud - gitweb
LU-9480 lnet: introduce LNET_PEER_MULTI_RAIL flag bit 81/25781/23
authorOlaf Weber <olaf@sgi.com>
Fri, 27 Jan 2017 15:24:21 +0000 (16:24 +0100)
committerAmir Shehata <amir.shehata@intel.com>
Tue, 22 Aug 2017 16:24:07 +0000 (16:24 +0000)
commite6c5e8a09d0aa4cead9c4847a7e3db5c0a407493
treed3e55f210749f70012ddfcb80285cef321434a60
parentba203e81c1543d0d39d6de39fd5cb9d6af7cc283
LU-9480 lnet: introduce LNET_PEER_MULTI_RAIL flag bit

Add lp_state as a flag word to lnet_peer, and add lp_lock
to protect it. This lock needs to be taken whenever the
field is updated, because setting or clearing a bit is
a read-modify-write cycle.

The lp_multi_rail is removed, its function is replaced by
the new LNET_PEER_MULTI_RAIL flag bit.

The helper lnet_peer_is_multi_rail() tests the bit.

Test-Parameters: trivial
Signed-off-by: Olaf Weber <olaf@sgi.com>
Change-Id: I15034be7670bcb18460dc709accf675711a48113
Reviewed-on: https://review.whamcloud.com/25781
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Amir Shehata <amir.shehata@intel.com>
Tested-by: Amir Shehata <amir.shehata@intel.com>
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/lib-types.h
lnet/lnet/lib-move.c
lnet/lnet/peer.c