Message ID | 1663478534-19917-24-git-send-email-jsimmons@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | lustre: update to 2.15.52 | expand |
diff --git a/net/lnet/lnet/api-ni.c b/net/lnet/lnet/api-ni.c index 9bf2860..89c7b99 100644 --- a/net/lnet/lnet/api-ni.c +++ b/net/lnet/lnet/api-ni.c @@ -3466,7 +3466,7 @@ static int lnet_add_net_common(struct lnet_net *net, lnet_set_tune_defaults(struct lnet_ioctl_config_lnd_tunables *tun) { if (tun) { - if (!tun->lt_cmn.lct_peer_timeout) + if (tun->lt_cmn.lct_peer_timeout < 0) tun->lt_cmn.lct_peer_timeout = DEFAULT_PEER_TIMEOUT; if (!tun->lt_cmn.lct_peer_tx_credits) tun->lt_cmn.lct_peer_tx_credits = DEFAULT_PEER_CREDITS;