Skip to content

Commit 8d5d8a5

Browse files
GoKu-Gear6SantoshShilimkar
authored andcommitted
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 <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]>
1 parent 3e56c2f commit 8d5d8a5

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

net/rds/rdma_transport.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,13 @@ static int rds_rdma_init(void)
206206
{
207207
int ret;
208208

209-
ret = rds_rdma_listen_init();
209+
ret = rds_ib_init();
210210
if (ret)
211211
goto out;
212212

213-
ret = rds_ib_init();
213+
ret = rds_rdma_listen_init();
214214
if (ret)
215-
goto err_ib_init;
216-
217-
goto out;
218-
219-
err_ib_init:
220-
rds_rdma_listen_stop();
215+
rds_ib_exit();
221216
out:
222217
return ret;
223218
}

0 commit comments

Comments
 (0)