Whamcloud - gitweb
LU-10360 ldlm: remove client_import_find_conn() 00/50000/3
authorMr NeilBrown <neilb@suse.de>
Mon, 9 May 2022 01:34:05 +0000 (11:34 +1000)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Mar 2023 03:28:47 +0000 (03:28 +0000)
This function hasn't been used since Commit 37be05eca3f4 ("LU-10360
mgc: Use IR for client->MDS/OST connections").
So remove it.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Idd68c2de1aba914e9017e9e8c10fbbe869ea5b26
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50000
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
lustre/include/lustre_net.h
lustre/ldlm/ldlm_lib.c

index 05e33de..0c42928 100644 (file)
@@ -2617,8 +2617,6 @@ int client_import_dyn_add_conn(struct obd_import *imp, struct obd_uuid *uuid,
 int client_import_add_nids_to_conn(struct obd_import *imp, lnet_nid_t *nids,
                                   int nid_count, struct obd_uuid *uuid);
 int client_import_del_conn(struct obd_import *imp, struct obd_uuid *uuid);
-int client_import_find_conn(struct obd_import *imp, lnet_nid_t peer,
-                            struct obd_uuid *uuid);
 int import_set_conn_priority(struct obd_import *imp, struct obd_uuid *uuid);
 void client_destroy_import(struct obd_import *imp);
 /** @} */
index c642b05..d012eea 100644 (file)
@@ -249,32 +249,6 @@ out:
 }
 EXPORT_SYMBOL(client_import_del_conn);
 
-/**
- * Find conn UUID by peer NID. \a peer is a server NID. This function is used
- * to find a conn uuid of \a imp which can reach \a peer.
- */
-int client_import_find_conn(struct obd_import *imp, lnet_nid_t peer,
-                           struct obd_uuid *uuid)
-{
-       struct obd_import_conn *conn;
-       int rc = -ENOENT;
-
-       ENTRY;
-
-       spin_lock(&imp->imp_lock);
-       list_for_each_entry(conn, &imp->imp_conn_list, oic_item) {
-               /* Check if conn UUID does have this peer NID. */
-               if (class_check_uuid(&conn->oic_uuid, peer)) {
-                       *uuid = conn->oic_uuid;
-                       rc = 0;
-                       break;
-               }
-       }
-       spin_unlock(&imp->imp_lock);
-       RETURN(rc);
-}
-EXPORT_SYMBOL(client_import_find_conn);
-
 void client_destroy_import(struct obd_import *imp)
 {
        /*