Whamcloud - gitweb
LU-16518 lnet: remove want_large_primary in lnet_peer_merge_data() 53/58353/2
authorTimothy Day <timday@amazon.com>
Sat, 8 Mar 2025 23:15:15 +0000 (23:15 +0000)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Mar 2025 05:56:50 +0000 (05:56 +0000)
This variable is not usused anywhere, so let's remove
it.

Fixes: 57bcd6aa7f5f ("LU-10391 lnet: lnet_peer_merge_data to understand large addr")
Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: If1f67280b15bb2cd37bd29b6731a7956a83e29ca
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58353
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/peer.c

index e44ead4..bee5725 100644 (file)
@@ -3251,7 +3251,6 @@ static int lnet_peer_merge_data(struct lnet_peer *lp,
        struct lnet_ping_iter pi;
        struct lnet_nid nid;
        u32 *stp;
-       bool want_large_primary;
        unsigned int flags;
        int ncurnis;
        int naddnis;
@@ -3300,8 +3299,6 @@ static int lnet_peer_merge_data(struct lnet_peer *lp,
         */
        ping_iter_first(&pi, pbuf, NULL);
        stp = ping_iter_next(&pi, &nid);
-       want_large_primary = (pbuf->pb_info.pi_features &
-                             LNET_PING_FEAT_PRIMARY_LARGE);
        for (; stp; stp = ping_iter_next(&pi, &nid)) {
                for (j = 0; j < ncurnis; j++)
                        if (nid_same(&nid, &curnis[j]))
@@ -3311,8 +3308,6 @@ static int lnet_peer_merge_data(struct lnet_peer *lp,
                        addnis[naddnis].ns_status = *stp;
                        naddnis += 1;
                }
-               if (want_large_primary && nid.nid_size)
-                       want_large_primary = false;
        }
        /*
         * Check for NIDs in curnis[] not present in pbuf.