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-Tag: 2.14.56~174 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=c51763948abfdbdc8e3f3ea7e73f2632320a095a;hp=a18c4a16246e6185919eda805eca52772bbc3efe 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. HPE-bug-id: LUS-10349 Test-Parameters: trivial Signed-off-by: Chris Horn Change-Id: I1fa14ad675ead4ae2c5b1d4edad250caa4498df2 Reviewed-on: https://review.whamcloud.com/45004 Reviewed-by: Serguei Smirnov Tested-by: jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lnet/lnet/lib-move.c b/lnet/lnet/lib-move.c index 53d204e..6117ccb 100644 --- a/lnet/lnet/lib-move.c +++ b/lnet/lnet/lib-move.c @@ -1837,8 +1837,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;