X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fclient.c;h=6c794b8a97b6940115367180fa5b430a89eceaab;hp=5d13a24df9f29156e640a2e841d7a50039b87d43;hb=1a24137e8f26eaae9a2dac39a1e8a8a0bed46b6b;hpb=c7342f2d57745fe020d87012be52354d48a1bf7e diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 5d13a24d..6c794b8 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -71,7 +71,7 @@ struct ptlrpc_connection *ptlrpc_uuid_to_connection(struct obd_uuid *uuid) return NULL; } - c = ptlrpc_get_connection(peer, self, uuid); + c = ptlrpc_connection_get(peer, self, uuid); if (c) { memcpy(c->c_remote_uuid.uuid, uuid->uuid, sizeof(c->c_remote_uuid.uuid)); @@ -82,24 +82,6 @@ struct ptlrpc_connection *ptlrpc_uuid_to_connection(struct obd_uuid *uuid) return c; } -void ptlrpc_readdress_connection(struct ptlrpc_connection *conn, - struct obd_uuid *uuid) -{ - lnet_nid_t self; - lnet_process_id_t peer; - int err; - - err = ptlrpc_uuid_to_peer(uuid, &peer, &self); - if (err != 0) { - CERROR("cannot find peer %s!\n", uuid->uuid); - return; - } - - conn->c_peer = peer; - conn->c_self = self; - return; -} - static inline struct ptlrpc_bulk_desc *new_bulk(int npages, int type, int portal) { struct ptlrpc_bulk_desc *desc;