summaryrefslogtreecommitdiffstats
path: root/net/rds/rdma_transport.c
diff options
context:
space:
mode:
authorQing Huang <qing.huang@oracle.com>2016-07-04 16:29:13 -0700
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>2017-01-02 14:02:45 -0800
commit8d5d8a5fd7f9337b2eff689df14ff3ae617f3ae6 (patch)
tree9a85641af9772583b0e97e986cbecc48b47f461f /net/rds/rdma_transport.c
parent3e56c2f856d7aba6a03feea834d68f9c05f7d0b6 (diff)
downloadlinux-8d5d8a5fd7f9337b2eff689df14ff3ae617f3ae6.tar.bz2
RDS: RDMA: start rdma listening after init
This prevents RDS from handling incoming rdma packets before RDS completes initializing its recv/send components. Signed-off-by: Qing Huang <qing.huang@oracle.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Diffstat (limited to 'net/rds/rdma_transport.c')
-rw-r--r--net/rds/rdma_transport.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c
index d5f311767157..fc59821f0a27 100644
--- a/net/rds/rdma_transport.c
+++ b/net/rds/rdma_transport.c
@@ -206,18 +206,13 @@ static int rds_rdma_init(void)
{
int ret;
- ret = rds_rdma_listen_init();
+ ret = rds_ib_init();
if (ret)
goto out;
- ret = rds_ib_init();
+ ret = rds_rdma_listen_init();
if (ret)
- goto err_ib_init;
-
- goto out;
-
-err_ib_init:
- rds_rdma_listen_stop();
+ rds_ib_exit();
out:
return ret;
}