summaryrefslogtreecommitdiff
path: root/samples/bpf
diff options
context:
space:
mode:
authorBob Pearson <rpearsonhpe@gmail.com>2021-06-04 18:05:59 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-20 16:15:50 +0200
commit1853dabfd1516682192cd40595feaa86e69a3bba (patch)
tree4faeab994fe53432d89961ae8749c6d364caa5bb /samples/bpf
parent6b97694d0a76c7b5f5e374dab2a3b1ef54899dc7 (diff)
RDMA/rxe: Fix qp reference counting for atomic ops
[ Upstream commit 15ae1375ea91ae2dee6f12d71a79d8c0a10a30bf ] 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. Link: https://lore.kernel.org/r/20210604230558.4812-1-rpearsonhpe@gmail.com Reported-by: Zhu Yanjun <zyjzyj2000@gmail.com> Fixes: 86af61764151 ("IB/rxe: remove unnecessary skb_clone") Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions