Commit 73385fdb authored by Jack Wang's avatar Jack Wang Committed by Jason Gunthorpe

RDMA/rtrs-clt: Remove outdated comment in create_con_cq_qp

As run destroy_con_cq_qp many times doesn't work, remove the comments.

Fixes: 6a98d71d ("RDMA/rtrs: client: main functionality")
Link: https://lore.kernel.org/r/20201023074353.21946-3-jinpu.wang@cloud.ionos.comSuggested-by: default avatarGioh Kim <gi-oh.kim@cloud.ionos.com>
Signed-off-by: default avatarJack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 2b3062e4
...@@ -1520,15 +1520,6 @@ static int create_con_cq_qp(struct rtrs_clt_con *con) ...@@ -1520,15 +1520,6 @@ static int create_con_cq_qp(struct rtrs_clt_con *con)
int err, cq_vector; int err, cq_vector;
struct rtrs_msg_rkey_rsp *rsp; struct rtrs_msg_rkey_rsp *rsp;
/*
* This function can fail, but still destroy_con_cq_qp() should
* be called, this is because create_con_cq_qp() is called on cm
* event path, thus caller/waiter never knows: have we failed before
* create_con_cq_qp() or after. To solve this dilemma without
* creating any additional flags just allow destroy_con_cq_qp() be
* called many times.
*/
if (con->c.cid == 0) { if (con->c.cid == 0) {
/* /*
* One completion for each receive and two for each send * One completion for each receive and two for each send
......
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