Whamcloud - gitweb
LU-9120 lnet: add monitor thread 63/32763/11
authorAmir Shehata <amir.shehata@intel.com>
Thu, 31 May 2018 00:20:10 +0000 (17:20 -0700)
committerAmir Shehata <ashehata@whamcloud.com>
Fri, 17 Aug 2018 19:53:34 +0000 (19:53 +0000)
commitb01e6fce1c988139b5fe59484c7568362992f37b
treeb48080c5c03755b8e59fdf80a391b3e234083407
parent63cf744d0fdf72fc5ac7e154ec60c4a08139acc4
LU-9120 lnet: add monitor thread

Refactored the router checker thread to be the monitor thread.
The monitor thread will check router aliveness, expires messages
on the active list, recover local and remote NIs and resend messages.

In this patch it only checks router aliveness.

A deadline on the message is also added to keep track of when this
message should expire.

Test-Parameters: forbuildonly
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I712cad13d55328400ce61749967979673c4d673f
Reviewed-on: https://review.whamcloud.com/32763
Tested-by: Jenkins
Reviewed-by: Sonia Sharma <sharmaso@whamcloud.com>
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Chris Horn <hornc@cray.com>
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/lib-types.h
lnet/lnet/api-ni.c
lnet/lnet/lib-move.c
lnet/lnet/lib-msg.c
lnet/lnet/router.c