diff options
author | Qing Huang <qing.huang@oracle.com> | 2016-07-05 01:29:13 +0200 |
---|---|---|
committer | Santosh Shilimkar <santosh.shilimkar@oracle.com> | 2017-01-02 23:02:45 +0100 |
commit | 8d5d8a5fd7f9337b2eff689df14ff3ae617f3ae6 (patch) | |
tree | 9a85641af9772583b0e97e986cbecc48b47f461f /net/rds/rdma_transport.c | |
parent | RDS: RDMA: fix the ib_map_mr_sg_zbva() argument (diff) | |
download | linux-8d5d8a5fd7f9337b2eff689df14ff3ae617f3ae6.tar.xz linux-8d5d8a5fd7f9337b2eff689df14ff3ae617f3ae6.zip |
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.c | 11 |
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; } |