Whamcloud - gitweb
LU-12424 lnet: prevent loop in LNetPrimaryNID() 91/35191/6
authorAmir Shehata <ashehata@whamcloud.com>
Tue, 11 Jun 2019 18:25:27 +0000 (11:25 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 27 Jun 2019 21:33:45 +0000 (21:33 +0000)
commit439520f762b093edba9af2f4ab63011eafab28d5
treec5bdbb27e87698e1a6cab5218a8fc827e12d92be
parent54e011a729fd656ae8568192763afe12425cd05e
LU-12424 lnet: prevent loop in LNetPrimaryNID()

If discovery is disabled locally or at the remote end, then attempt
discovery only once. Do not update the internal database when
discovery is disabled and do not repeat discovery.

This change prevents LNet from getting hung waiting for
discovery to complete.

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I4543b0f71e6cf297a1a5f058ebcc6bf74b8ac328
Reviewed-on: https://review.whamcloud.com/35191
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Tested-by: Jenkins
Reviewed-by: Chris Horn <hornc@cray.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/peer.c