Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- fixed typo in a comment.
[fs/lustre-release.git]
/
lnet
/
lnet
/
peer.c
diff --git
a/lnet/lnet/peer.c
b/lnet/lnet/peer.c
index
06b09b2
..
d4b58fa
100644
(file)
--- a/
lnet/lnet/peer.c
+++ b/
lnet/lnet/peer.c
@@
-185,6
+185,12
@@
lnet_nid2peer_locked(lnet_peer_t **lpp, lnet_nid_t nid)
LIBCFS_FREE(lp, sizeof(*lp));
LNET_LOCK();
+ if (the_lnet.ln_shutdown) {
+ lnet_peer_decref_locked(lp2);
+ *lpp = NULL;
+ return -ESHUTDOWN;
+ }
+
*lpp = lp2;
return 0;
}