]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/umem: Introduce an option to revoke DMABUF umem
authorYishai Hadas <yishaih@nvidia.com>
Thu, 1 Aug 2024 12:05:14 +0000 (15:05 +0300)
committerLeon Romanovsky <leon@kernel.org>
Sun, 11 Aug 2024 08:12:49 +0000 (11:12 +0300)
commit253c61dc256b3e6be65657f78b4a8452163ce00f
tree8738f45da564c9af3e1d345083df9f730b741287
parent682358fd35dece838e6ae2d9d6a69fc0b9a9d411
RDMA/umem: Introduce an option to revoke DMABUF umem

Introduce an option to revoke DMABUF umem.

This option will retain the umem allocation while revoking its DMA
mapping. Furthermore, any subsequent attempts to map the pages should
fail once the umem has been revoked.

This functionality will be utilized in the upcoming patches in the
series, where we aim to delay umem deallocation until the mkey
deregistration. However, we must unmap its pages immediately.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://patch.msgid.link/a38270f2fe4a194868ca2312f4c1c760e51bcbff.1722512548.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/umem_dmabuf.c
include/rdma/ib_umem.h