summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2026-02-13 13:57:41 +0300
committerLeon Romanovsky <leonro@nvidia.com>2026-02-25 16:15:30 +0300
commit25c741048891c4d3fc627cd5220e2cae4bab42a1 (patch)
tree094952ef61ca105d7be7e8f98fae2db14167201f /include
parenta731c8626507d2df0b34a572719e3e6efcf10530 (diff)
downloadlinux-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.h1
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: