]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA/uverbs: Support external FD uobjects
authorYishai Hadas <yishaih@nvidia.com>
Sun, 1 Feb 2026 14:34:04 +0000 (16:34 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 9 Feb 2026 04:47:31 +0000 (23:47 -0500)
commit9ad95a0f2b75a788325249f341694e0343facf7b
treed25d27125476e61e774a3fdeb7905b9b4e5315a4
parent06fddc7a1961241309ab9e18324514032b1e4763
RDMA/uverbs: Support external FD uobjects

Add support for uobjects that wrap externally allocated file
descriptors (FDs).

In this mode, the FD number still follows the standard uverbs allocation
flow, but the file pointer is allocated externally and has its own fops
and private data.

As a result, alloc_begin_fd_uobject() must handle cases where
fd_type->fops is NULL, and both alloc_commit_fd_uobject() and
alloc_abort_fd_uobject() must account for whether filp->private_data
exists, since it is populated outside the standard uverbs flow.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/20260201-dmabuf-export-v3-1-da238b614fe3@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/rdma_core.c