diff mbox series

[21/23] lnet: Clear lp_dc_error when discovery completes

Message ID 1597148419-20629-22-git-send-email-jsimmons@infradead.org (mailing list archive)
State New, archived
Headers show
Series lustre: latest patches landed to OpenSFS 08/11/2020 | expand

Commit Message

James Simmons Aug. 11, 2020, 12:20 p.m. UTC
From: Chris Horn <chris.horn@hpe.com>

If discovery completes successfully then we can clear the
lp_dc_error.

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@hpe.com>
Reviewed-on: https://review.whamcloud.com/39348
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
---
 net/lnet/lnet/peer.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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 |
 			  LNET_PEER_REDISCOVER);
 
+	lp->lp_dc_error = 0;
+
 	CDEBUG(D_NET, "peer %s\n", libcfs_nid2str(lp->lp_primary_nid));
 
 	return 0;