]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/core: Add pinned handles to FRMR pools
authorMichael Guralnik <michaelgur@nvidia.com>
Thu, 26 Feb 2026 13:52:10 +0000 (15:52 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 2 Mar 2026 18:45:13 +0000 (13:45 -0500)
commit020d189d16a62ed56115cce7e255459cf0eeb4e6
tree83d8728d3300c8df8156b24737074baf0cc86bc5
parent304725adecd7b1e08c5cd810d761e9c218839b12
RDMA/core: Add pinned handles to FRMR pools

Add a configuration of pinned handles on a specific FRMR pool.
The configured amount of pinned handles will not be aged and will stay
available for users to claim.

Upon setting the amount of pinned handles to an FRMR pool, we will make
sure we have at least the pinned amount of handles associated with the
pool and create more, if necessary.
The count for pinned handles take into account handles that are used by
user MRs and handles in the queue.

Introduce a new FRMR operation of build_key that allows drivers to
manipulate FRMR keys supplied by the user, allowing failing for
unsupported properties and masking of properties that are modifiable.

Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Reviewed-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/20260226-frmr_pools-v4-5-95360b54f15e@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/frmr_pools.c
drivers/infiniband/core/frmr_pools.h
include/rdma/frmr_pools.h