[lustre-devel] [PATCH 21/23] lnet: Clear lp_dc_error when discovery completes

James Simmons jsimmons at infradead.org
Tue Aug 11 05:20:17 PDT 2020

From: Chris Horn <chris.horn at hpe.com>

If discovery completes successfully then we can clear the

HPE-bug-id: LUS-9081
WC-bug-id: https://jira.whamcloud.com/browse/LU-13764
Lustre-commit: d3fa46705225f ("LU-13764 lnet: Clear lp_dc_error when discovery completes")
Signed-off-by: Chris Horn <chris.horn at hpe.com>
Reviewed-on: https://review.whamcloud.com/39348
Reviewed-by: Amir Shehata <ashehata at whamcloud.com>
Reviewed-by: Neil Brown <neilb at suse.de>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
 net/lnet/lnet/peer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/lnet/lnet/peer.c b/net/lnet/lnet/peer.c
index 81f908e..5ca6f68 100644
--- a/net/lnet/lnet/peer.c
+++ b/net/lnet/lnet/peer.c
@@ -3058,6 +3058,8 @@ static int lnet_peer_discovered(struct lnet_peer *lp)
 	lp->lp_state &= ~(LNET_PEER_DISCOVERING |
+	lp->lp_dc_error = 0;
 	CDEBUG(D_NET, "peer %s\n", libcfs_nid2str(lp->lp_primary_nid));
 	return 0;

More information about the lustre-devel mailing list