Commit 99f0c380 authored by Jack Wang's avatar Jack Wang Committed by Jason Gunthorpe

RDMA/rtrs-srv: Release lock before call into close_sess

In this error case, we don't need hold mutex to call close_sess.

Fixes: 9cb83748 ("RDMA/rtrs: server: main functionality")
Link: https://lore.kernel.org/r/20201217141915.56989-4-jinpu.wang@cloud.ionos.comSigned-off-by: default avatarJack Wang <jinpu.wang@cloud.ionos.com>
Tested-by: default avatarLutz Pogrell <lutz.pogrell@cloud.ionos.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 7490fd1f
......@@ -1863,8 +1863,8 @@ static int rtrs_rdma_connect(struct rdma_cm_id *cm_id,
return rtrs_rdma_do_reject(cm_id, -ECONNRESET);
close_and_return_err:
close_sess(sess);
mutex_unlock(&srv->paths_mutex);
close_sess(sess);
return err;
}
......
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