RDMA/mlx5: Don't remove cache MRs when a delay is needed
authorAharon Landau <aharonl@nvidia.com>
Mon, 4 Apr 2022 08:58:03 +0000 (11:58 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 4 Apr 2022 13:32:01 +0000 (10:32 -0300)
commit84c2362fb65d69c721fec0974556378cbb36a62b
tree2ccd73466496f650fd6d94579771976ff28dbfbb
parentabcc160e4c2bc320f0d94e1b77f272a12fe90a0e
RDMA/mlx5: Don't remove cache MRs when a delay is needed

Don't remove MRs from the cache if need to delay the removal.

Fixes: b9358bdbc713 ("RDMA/mlx5: Fix locking in MR cache work queue")
Link: https://lore.kernel.org/r/c3087a90ff362c8796c7eaa2715128743ce36722.1649062436.git.leonro@nvidia.com
Signed-off-by: Aharon Landau <aharonl@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mr.c