connection.c (712cba5d87a6c0e980ee5fad45734e189c4d7151) | connection.c (905dd4184e0732de41d6ee3c7b06e0cfdd9f0aad) |
---|---|
1/* 2 * Copyright (c) 2006 Oracle. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 255 unchanged lines hidden (view full) --- 264 * of them may have to be freed here. 265 */ 266 if (cp->cp_transport_data) 267 trans->conn_free(cp->cp_transport_data); 268 } 269 kmem_cache_free(rds_conn_slab, conn); 270 conn = found; 271 } else { | 1/* 2 * Copyright (c) 2006 Oracle. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 255 unchanged lines hidden (view full) --- 264 * of them may have to be freed here. 265 */ 266 if (cp->cp_transport_data) 267 trans->conn_free(cp->cp_transport_data); 268 } 269 kmem_cache_free(rds_conn_slab, conn); 270 conn = found; 271 } else { |
272 conn->c_my_gen_num = rds_gen_num; 273 conn->c_peer_gen_num = 0; |
|
272 hlist_add_head_rcu(&conn->c_hash_node, head); 273 rds_cong_add_conn(conn); 274 rds_conn_count++; 275 } 276 } 277 spin_unlock_irqrestore(&rds_conn_lock, flags); 278 279out: --- 404 unchanged lines hidden (view full) --- 684 685void rds_conn_connect_if_down(struct rds_connection *conn) 686{ 687 WARN_ON(conn->c_trans->t_mp_capable); 688 rds_conn_path_connect_if_down(&conn->c_path[0]); 689} 690EXPORT_SYMBOL_GPL(rds_conn_connect_if_down); 691 | 274 hlist_add_head_rcu(&conn->c_hash_node, head); 275 rds_cong_add_conn(conn); 276 rds_conn_count++; 277 } 278 } 279 spin_unlock_irqrestore(&rds_conn_lock, flags); 280 281out: --- 404 unchanged lines hidden (view full) --- 686 687void rds_conn_connect_if_down(struct rds_connection *conn) 688{ 689 WARN_ON(conn->c_trans->t_mp_capable); 690 rds_conn_path_connect_if_down(&conn->c_path[0]); 691} 692EXPORT_SYMBOL_GPL(rds_conn_connect_if_down); 693 |
692/* 693 * An error occurred on the connection 694 */ | |
695void | 694void |
696__rds_conn_error(struct rds_connection *conn, const char *fmt, ...) 697{ 698 va_list ap; 699 700 va_start(ap, fmt); 701 vprintk(fmt, ap); 702 va_end(ap); 703 704 rds_conn_drop(conn); 705} 706 707void | |
708__rds_conn_path_error(struct rds_conn_path *cp, const char *fmt, ...) 709{ 710 va_list ap; 711 712 va_start(ap, fmt); 713 vprintk(fmt, ap); 714 va_end(ap); 715 716 rds_conn_path_drop(cp); 717} | 695__rds_conn_path_error(struct rds_conn_path *cp, const char *fmt, ...) 696{ 697 va_list ap; 698 699 va_start(ap, fmt); 700 vprintk(fmt, ap); 701 va_end(ap); 702 703 rds_conn_path_drop(cp); 704} |