diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2022-04-21 04:40:37 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-05-09 15:03:45 +0300 |
commit | ed2b5dd0f895f80c30e28de63ce607c2f139318e (patch) | |
tree | 6c8b64d82bb830bfe2f20071a3ab87bcd534fc8d /drivers/infiniband/sw/rxe/rxe_verbs.c | |
parent | 4e05a4b329e9416e5aded022feacde4385148f21 (diff) | |
download | linux-ed2b5dd0f895f80c30e28de63ce607c2f139318e.tar.xz |
RDMA/rxe: Move qp cleanup code to rxe_qp_do_cleanup()
Move the code from rxe_qp_destroy() to rxe_qp_do_cleanup(). This allows
flows holding references to qp to complete before the qp object is torn
down.
Link: https://lore.kernel.org/r/20220421014042.26985-5-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_verbs.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_verbs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/drivers/infiniband/sw/rxe/rxe_verbs.c index 5282162faa1c..198afb055b06 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.c +++ b/drivers/infiniband/sw/rxe/rxe_verbs.c @@ -485,7 +485,6 @@ static int rxe_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) if (ret) return ret; - rxe_qp_destroy(qp); rxe_put(qp); return 0; } |