summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx5/wr.c
diff options
context:
space:
mode:
authorAharon Landau <aharonl@nvidia.com>2022-07-26 10:19:08 +0300
committerJason Gunthorpe <jgg@nvidia.com>2022-07-27 20:45:48 +0300
commit86457a92df1bebdcd8e20afa286427e4b525aa08 (patch)
treee9ba1f9ea7fe6385d947d98e8ccd6954d8ad035e /drivers/infiniband/hw/mlx5/wr.c
parent17ae355926ed1832449d52748334b8fa799301f1 (diff)
downloadlinux-86457a92df1bebdcd8e20afa286427e4b525aa08.tar.xz
RDMA/mlx5: Replace cache list with Xarray
The Xarray allows us to store the cached mkeys in memory efficient way. Entries are reserved in the Xarray using xa_cmpxchg before calling to the upcoming callbacks to avoid allocations in interrupt context. The xa_cmpxchg can sleep when using GFP_KERNEL, so we call it in a loop to ensure one reserved entry for each process trying to reserve. Link: https://lore.kernel.org/r/20220726071911.122765-3-michaelgur@nvidia.com Signed-off-by: Aharon Landau <aharonl@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/wr.c')
0 files changed, 0 insertions, 0 deletions