On Fri, Jun 04, 2021 at 06:05:59PM -0500, Bob Pearson wrote: > Currently the rdma_rxe driver attempts to protect atomic responder > resources by taking a reference to the qp which is only freed when the > resource is recycled for a new read or atomic operation. This means that > in normal circumstances there is almost always an extra qp reference > once an atomic operation has been executed which prevents cleaning up > the qp and associated pd and cqs when the qp is destroyed. > > This patch removes the call to rxe_add_ref() in send_atomic_ack() and the > call to rxe_drop_ref() in free_rd_atomic_resource(). If the qp is > destroyed while a peer is retrying an atomic op it will cause the > operation to fail which is acceptable. > > Reported-by: Zhu Yanjun <zyjzyj2000@xxxxxxxxx> > Fixes: 86af61764151 ("IB/rxe: remove unnecessary skb_clone") > Signed-off-by: Bob Pearson <rpearsonhpe@xxxxxxxxx> > --- > drivers/infiniband/sw/rxe/rxe_qp.c | 1 - > drivers/infiniband/sw/rxe/rxe_resp.c | 2 -- > 2 files changed, 3 deletions(-) Applied to for-next, thanks Jason