mirror_ubuntu-kernels/drivers/infiniband/hw
Aharon Landau 86457a92df 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>
2022-07-27 14:45:48 -03:00
..
bnxt_re RDMA: Correct duplicated words in comments 2022-06-24 16:52:28 -03:00
cxgb4 RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
efa RDMA/efa: Add support for dmabuf memory regions 2021-10-28 08:58:26 -03:00
hfi1 RDMA/hfi1: fix potential memory leak in setup_base_ctxt() 2022-07-19 08:21:29 +03:00
hns RDMA/hns: Recover 1bit-ECC error of RAM on chip 2022-07-18 14:16:40 +03:00
irdma RDMA/irdma: Use the bitmap API to allocate bitmaps 2022-07-18 13:23:58 +03:00
mlx4 RDMA/mlx4: Avoid flush_scheduled_work() usage 2022-05-20 11:21:00 -03:00
mlx5 RDMA/mlx5: Replace cache list with Xarray 2022-07-27 14:45:48 -03:00
mthca RDMA/mthca: Delete useless module.h include 2022-01-28 13:03:12 -04:00
ocrdma RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
qedr RDMA/qedr: Fix potential memory leak in __qedr_alloc_mr() 2022-07-18 14:16:10 +03:00
qib IB: Fix repeated words 'the the' comments 2022-07-22 12:02:29 -03:00
usnic RDMA/usnic: Use device_iommu_capable() 2022-06-16 10:15:29 +03:00
vmw_pvrdma RDMA/pvrdma: Remove useless DMA-32 fallback configuration 2022-01-28 10:49:04 -04:00
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00