diff options
| author | Leon Romanovsky <leonro@nvidia.com> | 2026-02-13 13:57:41 +0300 |
|---|---|---|
| committer | Leon Romanovsky <leonro@nvidia.com> | 2026-02-25 16:15:30 +0300 |
| commit | 25c741048891c4d3fc627cd5220e2cae4bab42a1 (patch) | |
| tree | 094952ef61ca105d7be7e8f98fae2db14167201f /include | |
| parent | a731c8626507d2df0b34a572719e3e6efcf10530 (diff) | |
| download | linux-25c741048891c4d3fc627cd5220e2cae4bab42a1.tar.xz | |
RDMA/core: Manage CQ umem in core code
In the current implementation, CQ umem is handled both by ib_core and
the driver. ib_core sometimes creates and destroys it, while the driver
also destroys it.
Store the umem in struct ib_cq and ensure that only ib_core manages
its lifetime, relying solely on its internal reference counter.
Link: https://patch.msgid.link/20260213-refactor-umem-v1-5-f3be85847922@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/rdma/ib_verbs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 7bdd77ed7e20..8531eed7b394 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -1650,6 +1650,7 @@ struct ib_cq { u8 interrupt:1; u8 shared:1; unsigned int comp_vector; + struct ib_umem *umem; /* * Implementation details of the RDMA core, don't use in drivers: |
