diff options
| author | Jacob Moroni <jmoroni@google.com> | 2026-10-29 13:31:21 +0000 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-11-03 08:17:49 -0500 |
| commit | 6b5c8236e3008f7795ce558a9235c38f829a94a4 (patch) | |
| tree | 020b6464ed944ce955cd5c17ba6cfbf7ec23528f /tools/perf/scripts/python | |
| parent | a7ff66ebcb81abf65967513cc51788e5bdb32a92 (diff) | |
RDMA/irdma: Do not allow rereg_mr to revive defunct MRs
An MR can become "defunct" if a previous rereg_mr happened
to fail in between deregistering the old MR in HW and
reregistering it (e.g., due to ib_umem_get_va() failing
in the IB_MR_REREG_TRANS case).
In this case, the MR is left in a state where the umem may
have already been released.
If rereg_mr then runs again, but without IB_MR_REREG_TRANS,
it will end up reregistering the MR with stale translation
info.
Fix this by rejecting any attempt to reregister an MR that
has previously failed during rereg_mr after the point where
the MR has been deregistered in HW.
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/20261029133121.1204636-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
