linux_dsm_epyc7002/drivers/infiniband
Aharon Landau d4ff279d31 RDMA/mlx5: Delay emptying a cache entry when a new MR is added to it recently
[ Upstream commit d6793ca97b76642b77629dd0783ec64782a50bdb ]

Fixing a typo that causes a cache entry to shrink immediately after adding
to it new MRs if the entry size exceeds the high limit.  In doing so, the
cache misses its purpose to prevent the creation of new mkeys on the
runtime by using the cached ones.

Fixes: b9358bdbc7 ("RDMA/mlx5: Fix locking in MR cache work queue")
Link: https://lore.kernel.org/r/fcb546986be346684a016f5ca23a0567399145fa.1627370131.git.leonro@nvidia.com
Signed-off-by: Aharon Landau <aharonl@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 18:52:08 +02:00
..
core RDMA/cma: Fix rdma_resolve_route() memory leak 2021-07-19 09:44:53 +02:00
hw RDMA/mlx5: Delay emptying a cache entry when a new MR is added to it recently 2024-07-05 18:52:08 +02:00
sw RDMA/rxe: Don't overwrite errno from ib_umem_get() 2021-07-19 09:44:52 +02:00
ulp init: add dsm gpl source 2024-07-05 18:00:04 +02:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-12 13:27:41 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00