Skip to content

MR cache fixes and refactoring

Leon Romanovsky linux-rdma netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9RDMA/mlx5: Move asynchronous mkey creation to mlx5_ibdrivers/infiniband/hw/mlx5/mr.c drivers/net/ethernet/mellanox/mlx5/core/mr.c include/linux/mlx5/driver.h+24 -293 replies
2/9RDMA/mlx5: Rename the tracking variables for the MR cachedrivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/mr.c+42 -310 replies
3/9RDMA/mlx5: Simplify how the MR cache bucket is locateddrivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/mr.c drivers/infiniband/hw/mlx5/odp.c+69 -950 replies
4/9RDMA/mlx5: Always remove MRs from the cache before destroying themdrivers/infiniband/hw/mlx5/mr.c+13 -60 replies
5/9RDMA/mlx5: Fix MR cache size and limit debugfsdrivers/infiniband/hw/mlx5/mr.c+88 -640 replies
6/9RDMA/mlx5: Lock access to ent->available_mrs/limit when doing queue_workdrivers/infiniband/hw/mlx5/mr.c+25 -150 replies
7/9RDMA/mlx5: Fix locking in MR cache work queuedrivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/mr.c+80 -460 replies
8/9RDMA/mlx5: Revise how the hysteresis scheme works for cache fillingdrivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/mr.c+27 -150 replies
9/9RDMA/mlx5: Allow MRs to be created in the cache synchronouslydrivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/mr.c+105 -690 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH rdma-next 0/9] MR cache fixes and refactoring

From: Leon Romanovsky <[email protected]>

Hi,

This series fixes various corner cases in the mlx5_ib MR cache implementation, see specific commit messages for more information.

Thanks

Jason Gunthorpe (8):
RDMA/mlx5: Rename the tracking variables for the MR cache RDMA/mlx5: Simplify how the MR cache bucket is located RDMA/mlx5: Always remove MRs from the cache before destroying them RDMA/mlx5: Fix MR cache size and limit debugfs RDMA/mlx5: Lock access to ent->available_mrs/limit when doing
queue_work
RDMA/mlx5: Fix locking in MR cache work queue
RDMA/mlx5: Revise how the hysteresis scheme works for cache filling RDMA/mlx5: Allow MRs to be created in the cache synchronously

Michael Guralnik (1):
RDMA/mlx5: Move asynchronous mkey creation to mlx5_ib

 drivers/infiniband/hw/mlx5/mlx5_ib.h         |  33 +-
 drivers/infiniband/hw/mlx5/mr.c              | 642 +++++++++++--------
 drivers/infiniband/hw/mlx5/odp.c             |   2 +-
 drivers/net/ethernet/mellanox/mlx5/core/mr.c |  22 +-
 include/linux/mlx5/driver.h                  |   6 -
 5 files changed, 404 insertions(+), 301 deletions(-)

--
2.24.1