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
LU-16145 lnet: Honor peer timeout of zero
[fs/lustre-release.git]
/
lnet
/
utils
/
lnetconfig
/
liblnetconfig.c
diff --git
a/lnet/utils/lnetconfig/liblnetconfig.c
b/lnet/utils/lnetconfig/liblnetconfig.c
index
ad11da2
..
9b44a76
100644
(file)
--- a/
lnet/utils/lnetconfig/liblnetconfig.c
+++ b/
lnet/utils/lnetconfig/liblnetconfig.c
@@
-4422,6
+4422,8
@@
yaml_extract_cmn_tunables(struct cYAML *tree,
item = cYAML_get_object_item(tun, "peer_timeout");
if (item != NULL)
tunables->lct_peer_timeout = item->cy_valueint;
item = cYAML_get_object_item(tun, "peer_timeout");
if (item != NULL)
tunables->lct_peer_timeout = item->cy_valueint;
+ else
+ tunables->lct_peer_timeout = -1;
item = cYAML_get_object_item(tun, "peer_credits");
if (item != NULL)
tunables->lct_peer_tx_credits = item->cy_valueint;
item = cYAML_get_object_item(tun, "peer_credits");
if (item != NULL)
tunables->lct_peer_tx_credits = item->cy_valueint;