From d7b5f3114d51d5a9d1a34f5073e0bb2d0d63d302 Mon Sep 17 00:00:00 2001 From: Amir Shehata Date: Sat, 27 Apr 2019 15:47:42 -0700 Subject: [PATCH] LU-11297 lnet: invalidate recovery ping mdh For cleanliness, ensure that recovery ping mdh is invalidated when an peer ni or a local ni are allocated Test-Parameters: forbuildonly Signed-off-by: Amir Shehata Change-Id: If06448b1602b3680831244923b6b982a555159ea Reviewed-on: https://review.whamcloud.com/34771 Reviewed-by: Olaf Weber Reviewed-by: Sebastien Buisson Reviewed-by: Chris Horn Tested-by: Jenkins --- lnet/lnet/config.c | 1 + lnet/lnet/peer.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lnet/lnet/config.c b/lnet/lnet/config.c index bcd780d..a8ff2e3 100644 --- a/lnet/lnet/config.c +++ b/lnet/lnet/config.c @@ -459,6 +459,7 @@ lnet_ni_alloc_common(struct lnet_net *net, char *iface) spin_lock_init(&ni->ni_lock); INIT_LIST_HEAD(&ni->ni_netlist); INIT_LIST_HEAD(&ni->ni_recovery); + LNetInvalidateMDHandle(&ni->ni_ping_mdh); ni->ni_refs = cfs_percpt_alloc(lnet_cpt_table(), sizeof(*ni->ni_refs[0])); if (ni->ni_refs == NULL) diff --git a/lnet/lnet/peer.c b/lnet/lnet/peer.c index 989b1f4..69a9e93 100644 --- a/lnet/lnet/peer.c +++ b/lnet/lnet/peer.c @@ -168,6 +168,7 @@ lnet_peer_ni_alloc(lnet_nid_t nid) INIT_LIST_HEAD(&lpni->lpni_peer_nis); INIT_LIST_HEAD(&lpni->lpni_recovery); INIT_LIST_HEAD(&lpni->lpni_on_remote_peer_ni_list); + LNetInvalidateMDHandle(&lpni->lpni_recovery_ping_mdh); spin_lock_init(&lpni->lpni_lock); -- 1.8.3.1