From: Qing Huang Date: Mon, 4 Jul 2016 23:29:13 +0000 (-0700) Subject: RDS: RDMA: start rdma listening after init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d5d8a5fd7f9337b2eff689df14ff3ae617f3ae6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Santosh Shilimkar --- 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; }