Message ID | 1625685076-1964-6-git-send-email-jsimmons@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | lustre: updates to OpenSFS tree as of July 7 2021 | expand |
diff --git a/net/lnet/lnet/peer.c b/net/lnet/lnet/peer.c index 76b2d2f..29c3372 100644 --- a/net/lnet/lnet/peer.c +++ b/net/lnet/lnet/peer.c @@ -2783,7 +2783,8 @@ static void lnet_discovery_event_handler(struct lnet_event *event) /* Put peer back at end of request queue, if discovery not already * done */ - if (rc == LNET_REDISCOVER_PEER && !lnet_peer_is_uptodate(lp)) { + if (rc == LNET_REDISCOVER_PEER && !lnet_peer_is_uptodate(lp) && + lnet_peer_queue_for_discovery(lp)) { list_move_tail(&lp->lp_dc_list, &the_lnet.ln_dc_request); wake_up(&the_lnet.ln_dc_waitq); }