]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/umem: Add ib_umem_dmabuf_get_pinned_and_lock helper
authorJacob Moroni <jmoroni@google.com>
Thu, 5 Mar 2026 17:08:22 +0000 (17:08 +0000)
committerLeon Romanovsky <leon@kernel.org>
Sun, 8 Mar 2026 12:37:38 +0000 (08:37 -0400)
commit553dfa8cbd0c6d36adae042d9738ddf8f8765ac7
treee2ae3a01551e3bec91865ac327080f2bfcfbecc1
parent1dc469f669fe4802dc26aa5a10bcfa32f39b681b
RDMA/umem: Add ib_umem_dmabuf_get_pinned_and_lock helper

Move the inner logic of ib_umem_dmabuf_get_pinned_with_dma_device()
to a new static function that returns with the lock held upon success.

The intent is to allow reuse for the future get_pinned_revocable_and_lock
function.

Signed-off-by: Jacob Moroni <jmoroni@google.com>
Link: https://patch.msgid.link/20260305170826.3803155-2-jmoroni@google.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/umem_dmabuf.c