Skip to content

Commit 3e44a61

Browse files
jinpuwangrleon
authored andcommitted
RDMA/rtrs-clt: Start hb after path_up
If we start hb too early, it will confuse server side to close the session. Fixes: 6a98d71 ("RDMA/rtrs: client: main functionality") Signed-off-by: Jack Wang <[email protected]> Reviewed-by: Md Haris Iqbal <[email protected]> Signed-off-by: Grzegorz Prajsner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 3ee7ecd commit 3e44a61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/infiniband/ulp/rtrs/rtrs-clt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,8 +2350,6 @@ static int init_conns(struct rtrs_clt_path *clt_path)
23502350
if (err)
23512351
goto destroy;
23522352

2353-
rtrs_start_hb(&clt_path->s);
2354-
23552353
return 0;
23562354

23572355
destroy:
@@ -2625,6 +2623,7 @@ static int init_path(struct rtrs_clt_path *clt_path)
26252623
goto out;
26262624
}
26272625
rtrs_clt_path_up(clt_path);
2626+
rtrs_start_hb(&clt_path->s);
26282627
out:
26292628
mutex_unlock(&clt_path->init_mutex);
26302629

0 commit comments

Comments
 (0)