Commit 8d5d8a5f authored by Qing Huang's avatar Qing Huang Committed by Santosh Shilimkar

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: default avatarQing Huang <qing.huang@oracle.com>
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
parent 3e56c2f8
...@@ -206,18 +206,13 @@ static int rds_rdma_init(void) ...@@ -206,18 +206,13 @@ static int rds_rdma_init(void)
{ {
int ret; int ret;
ret = rds_rdma_listen_init();
if (ret)
goto out;
ret = rds_ib_init(); ret = rds_ib_init();
if (ret) if (ret)
goto err_ib_init;
goto out; goto out;
err_ib_init: ret = rds_rdma_listen_init();
rds_rdma_listen_stop(); if (ret)
rds_ib_exit();
out: out:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment