diff --git a/net/lnet/lnet/peer.c b/net/lnet/lnet/peer.c index e33dc0e..b0ca1de 100644 --- a/net/lnet/lnet/peer.c +++ b/net/lnet/lnet/peer.c @@ -877,6 +877,8 @@ struct lnet_peer_ni * int cpt; lnet_net_lock(LNET_LOCK_EX); + if (lnet_peer_discovery_disabled) + force = 0; lncpt = cfs_percpt_number(the_lnet.ln_peer_tables); for (cpt = 0; cpt < lncpt; cpt++) { ptable = the_lnet.ln_peer_tables[cpt];