summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJacob Moroni <jmoroni@google.com>2026-10-29 13:53:06 +0000
committerLeon Romanovsky <leon@kernel.org>2026-11-03 08:19:56 -0500
commitab5389ccf8bcd312a620f974ef94c174067ac1c8 (patch)
tree648c76274a7480c825deedf492ef2a77f55d4469 /tools/perf/scripts/python
parent6b5c8236e3008f7795ce558a9235c38f829a94a4 (diff)
RDMA/irdma: Do not change mr->pd in driver during rereg_mr
Previously, IB_MR_REREG_PD would cause the driver to set iwmr->ibmr.pd to the new PD before reregistering with HW because irdma_hwreg_mr() retrieves the PD from there. ib_uverbs_rereg_mr() only moves the PD usecnt from the old PD to the new one and updates mr->pd itself after the driver's rereg_user_mr() call succeeds. So, if the rereg_user_mr() call fails, the MR is left pointing at a PD that does not account for it while the old PD keeps the reference, which means the old PD can never be deallocated, while the new PD can be deallocated even though the MR still points at it. Fix this by removing the PD update from the driver and just letting the core handle it. This required plumbing the PD as an argument through a few functions. This works because the core passes the PD unconditionally and provides the current PD if IB_MR_REREG_PD is not set. Fixes: 5ac388db27c4 ("RDMA/irdma: Add support to re-register a memory region") Signed-off-by: Jacob Moroni <jmoroni@google.com> Link: https://patch.msgid.link/20261029135306.1372393-1-jmoroni@google.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions