Whamcloud - gitweb
LU-11514 lnet: separate ni state from recovery 61/33361/3
authorAmir Shehata <ashehata@whamcloud.com>
Fri, 12 Oct 2018 18:30:34 +0000 (11:30 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Nov 2018 06:41:17 +0000 (06:41 +0000)
commit2be10428ac22426c5868b699b6c0b80c040465dc
treeeced11ad79bd3939fd896469b872ccf7cd6a5af8
parent307d877e51240e1d50c0fc42b190f1247f387f85
LU-11514 lnet: separate ni state from recovery

To make the code more readable we make the ni_state an
enumerated type, and create a separate bit filed to track
the recovery state. Both of these are protected by the
lnet_ni_lock()

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I5acfccecffd5dbb07c9ad3b1c7651cf291b85cb8
Reviewed-on: https://review.whamcloud.com/33361
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Sonia Sharma <sharmaso@whamcloud.com>
Reviewed-by: Doug Oucharek <dougso@me.com>
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-types.h
lnet/lnet/api-ni.c
lnet/lnet/config.c
lnet/lnet/lib-move.c