Skip to content

Commit

Permalink
LU-12423 lnet: honor discovery setting
Browse files Browse the repository at this point in the history
If discovery is off do not push out any updates. This could be
triggered in case of a gateway's interface changing.

Test-Parameters: trivial
Signed-off-by: Amir Shehata <[email protected]>
Change-Id: Ie421318ae85b895327ec170ffb436c9b679f6866
Reviewed-on: https://review.whamcloud.com/35192
Tested-by: jenkins <[email protected]>
Tested-by: Maloo <[email protected]>
Reviewed-by: Olaf Weber <[email protected]>
Reviewed-by: Chris Horn <[email protected]>
Reviewed-by: Oleg Drokin <[email protected]>
  • Loading branch information
Amir Shehata authored and Oleg Drokin committed Jul 12, 2019
1 parent 4c7fe0c commit a06b656
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lnet/lnet/peer.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,8 @@ lnet_push_update_to_peers(int force)
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];
Expand Down

0 comments on commit a06b656

Please sign in to comment.