]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Delay emptying a cache entry when a new MR is added to it recently
authorAharon Landau <aharonl@nvidia.com>
Tue, 27 Jul 2021 07:16:06 +0000 (10:16 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 2 Aug 2021 15:45:22 +0000 (12:45 -0300)
commitea6e4f62efe742fee0b513c758cb280ae2dc1760
tree2c20b5a5c9d72be18ca0234da0d5ab15138d0612
parent2f420e64267ac5032f4dcebc0b74ddd4a0145b64
RDMA/mlx5: Delay emptying a cache entry when a new MR is added to it recently

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: b002dccb5ed9 ("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>
drivers/infiniband/hw/mlx5/mr.c