Whamcloud - gitweb
LU-8106 lnet: Do not drop message when shutting down LNet
[fs/lustre-release.git] / lnet / lnet / lib-move.c
index 0df68dc..cd7c0e9 100644 (file)
@@ -1991,6 +1991,9 @@ lnet_parse(lnet_ni_t *ni, lnet_hdr_t *hdr, lnet_nid_t from_nid,
                       libcfs_nid2str(from_nid), libcfs_nid2str(src_nid),
                       lnet_msgtyp2str(type), rc);
                lnet_msg_free(msg);
+               if (rc == -ESHUTDOWN)
+                       /* We are shutting down.  Don't do anything more */
+                       return 0;
                goto drop;
        }