af_rds.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) | af_rds.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: --- 591 unchanged lines hidden (view full) --- 600 rds_stats_exit(); 601 rds_page_exit(); 602 rds_bind_lock_destroy(); 603 rds_info_deregister_func(RDS_INFO_SOCKETS, rds_sock_info); 604 rds_info_deregister_func(RDS_INFO_RECV_MESSAGES, rds_sock_inc_info); 605} 606module_exit(rds_exit); 607 | 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: --- 591 unchanged lines hidden (view full) --- 600 rds_stats_exit(); 601 rds_page_exit(); 602 rds_bind_lock_destroy(); 603 rds_info_deregister_func(RDS_INFO_SOCKETS, rds_sock_info); 604 rds_info_deregister_func(RDS_INFO_RECV_MESSAGES, rds_sock_inc_info); 605} 606module_exit(rds_exit); 607 |
608u32 rds_gen_num; 609 |
|
608static int rds_init(void) 609{ 610 int ret; 611 | 610static int rds_init(void) 611{ 612 int ret; 613 |
614 net_get_random_once(&rds_gen_num, sizeof(rds_gen_num)); 615 |
|
612 ret = rds_bind_lock_init(); 613 if (ret) 614 goto out; 615 616 ret = rds_conn_init(); 617 if (ret) 618 goto out_bind; 619 --- 49 unchanged lines hidden --- | 616 ret = rds_bind_lock_init(); 617 if (ret) 618 goto out; 619 620 ret = rds_conn_init(); 621 if (ret) 622 goto out_bind; 623 --- 49 unchanged lines hidden --- |