]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/core: Manage CQ umem in core code
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 13 Feb 2026 10:57:41 +0000 (12:57 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Wed, 25 Feb 2026 13:15:30 +0000 (08:15 -0500)
commit25c741048891c4d3fc627cd5220e2cae4bab42a1
tree094952ef61ca105d7be7e8f98fae2db14167201f
parenta731c8626507d2df0b34a572719e3e6efcf10530
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>
drivers/infiniband/core/umem.c
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_std_types_cq.c
drivers/infiniband/core/verbs.c
drivers/infiniband/hw/efa/efa_verbs.c
include/rdma/ib_verbs.h