Whamcloud - gitweb
LU-12537 lnet: Sync the start of discovery and monitor threads 78/35478/3
authorChris Horn <hornc@cray.com>
Sun, 14 Jul 2019 14:10:29 +0000 (09:10 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 9 Aug 2019 04:39:38 +0000 (04:39 +0000)
commit9283e2ed6655e89fe693d35313c9dcf1d5a6703a
tree9be3ae184d6dc61c5c469bc6696f50562a58747d
parentefe6615d7558ee6bda106546c55d92758bec528d
LU-12537 lnet: Sync the start of discovery and monitor threads

The discovery thread starts up before the monitor thread so it may
issue PUTs or GETs before the monitor thread has a chance to
initialize its data structures (namely the_lnet.ln_mt_rstq). This can
result in an OOPs when we attempt to attach response trackers to MDs.

Introduce a completion to synchronize the startup of these threads.

Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: I5d7356269090d8cbd1eab59fa29bee7ef211832f
Reviewed-on: https://review.whamcloud.com/35478
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexandr Boyko <c17825@cray.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-types.h
lnet/lnet/api-ni.c
lnet/lnet/lib-move.c
lnet/lnet/peer.c