+void ptlrpc_dump_connections(void)
+{
+ struct list_head *tmp;
+ struct ptlrpc_connection *c;
+ ENTRY;
+
+ list_for_each(tmp, &conn_list) {
+ c = list_entry(tmp, struct ptlrpc_connection, c_link);
+ CERROR("Connection %p/%s has refcount %d (nid="LPX64" on %s)\n",
+ c, c->c_remote_uuid.uuid, atomic_read(&c->c_refcount),
+ c->c_peer.peer_nid, c->c_peer.peer_ni->pni_name);
+ }
+ EXIT;
+}
+
+struct ptlrpc_connection *ptlrpc_get_connection(struct ptlrpc_peer *peer,
+ struct obd_uuid *uuid)