Whamcloud - gitweb
LU-12537 lnet: Sync the start of discovery and monitor threads
[fs/lustre-release.git] / lnet / include / lnet / lib-types.h
index f00108f..c3feaea 100644 (file)
@@ -584,6 +584,8 @@ struct lnet_peer_ni {
        __u32                   lpni_gw_seq;
        /* returned RC ping features. Protected with lpni_lock */
        unsigned int            lpni_ping_feats;
+       /* time last message was received from the peer */
+       time64_t                lpni_last_alive;
        /* preferred local nids: if only one, use lpni_pref.nid */
        union lpni_pref {
                lnet_nid_t      nid;
@@ -765,6 +767,8 @@ struct lnet_peer_net {
        /* time of last router net check attempt */
        time64_t                lpn_rtrcheck_timestamp;
 
+       /* selection sequence number */
+       __u32                   lpn_seq;
 
        /* reference count */
        atomic_t                lpn_refcount;
@@ -1139,6 +1143,11 @@ struct lnet {
        /* recovery eq handler */
        struct lnet_handle_eq           ln_mt_eqh;
 
+       /*
+        * Completed when the discovery and monitor threads can enter their
+        * work loops
+        */
+       struct completion               ln_started;
 };
 
 #endif