Whamcloud - gitweb
LU-11304 misc: update all url links to whamcloud
[fs/lustre-release.git] / lnet / lnet / router.c
index 14d3cae..c66f5a5 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2011, 2017, Intel Corporation.
  *
- *   This file is part of Lustre, https://wiki.hpdd.intel.com/
+ *   This file is part of Lustre, https://wiki.whamcloud.com/
  *
  *   Portals is free software; you can redistribute it and/or
  *   modify it under the terms of version 2 of the GNU General Public
@@ -1070,7 +1070,14 @@ lnet_ping_router_locked(struct lnet_peer_ni *rtr)
        }
 
        rcd = rtr->lpni_rcd;
-       if (!rcd || rcd->rcd_nnis > rcd->rcd_pingbuffer->pb_nnis)
+
+       /*
+        * The response to the router checker ping could've timed out and
+        * the mdh might've been invalidated, so we need to update it
+        * again.
+        */
+       if (!rcd || rcd->rcd_nnis > rcd->rcd_pingbuffer->pb_nnis ||
+           LNetMDHandleIsInvalid(rcd->rcd_mdh))
                rcd = lnet_update_rc_data_locked(rtr);
        if (rcd == NULL)
                return;