Whamcloud - gitweb
LU-11297 lnet: invalidate recovery ping mdh 34/36034/6
authorAmir Shehata <ashehata@whamcloud.com>
Sat, 27 Apr 2019 22:47:42 +0000 (15:47 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 4 Oct 2019 20:30:33 +0000 (20:30 +0000)
For cleanliness, ensure that recovery ping mdh is invalidated when
an peer ni or a local ni are allocated

Lustre-change: https://review.whamcloud.com/34771
Lustre-commit: d7b5f3114d51d5a9d1a34f5073e0bb2d0d63d302

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: If06448b1602b3680831244923b6b982a555159ea
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/36034
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/config.c
lnet/lnet/peer.c

index 5633995..2dfbe76 100644 (file)
@@ -460,6 +460,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)
index 989b1f4..69a9e93 100644 (file)
@@ -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);