Whamcloud - gitweb
LU-13575 lnet: Ensure round robin selection of peer NIs
[fs/lustre-release.git] / lnet / lnet / lib-move.c
index 53d204e..6117ccb 100644 (file)
@@ -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;