From: Chris Horn Date: Fri, 27 Aug 2021 21:59:33 +0000 (-0500) Subject: LU-13575 lnet: Ensure round robin selection of peer NIs X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=de5ec2f241cade593a2a93b7c65f2796730a380f;p=fs%2Flustre-release.git LU-13575 lnet: Ensure round robin selection of peer NIs Use the peer net sequence number to set the peer NI sequence number to ensure round robin selection of peer NIs on each peer net. Lustre-change: https://review.whamcloud.com/45004 Lustre-commit: c51763948abfdbdc8e3f3ea7e73f2632320a095a HPE-bug-id: LUS-10349 Test-Parameters: trivial Signed-off-by: Chris Horn Change-Id: I1fa14ad675ead4ae2c5b1d4edad250caa4498df2 Reviewed-by: Serguei Smirnov Reviewed-by: Andreas Dilger Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52471 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Frank Sehr --- diff --git a/lnet/lnet/lib-move.c b/lnet/lnet/lib-move.c index ca04d9c..f58a1bc 100644 --- a/lnet/lnet/lib-move.c +++ b/lnet/lnet/lib-move.c @@ -1818,8 +1818,8 @@ lnet_handle_send(struct lnet_send_data *sd) * local ni and local net so that we pick the next ones * in Round Robin. */ - best_lpni->lpni_seq++; best_lpni->lpni_peer_net->lpn_seq++; + best_lpni->lpni_seq = best_lpni->lpni_peer_net->lpn_seq; best_ni->ni_net->net_seq++; best_ni->ni_seq = best_ni->ni_net->net_seq;