]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:59:36 +0000 (11:59 +0200)
commitd2d9c5667294999031e74b4de5dd55d0f3e346f1
tree99513ad50cc90023e766651023b7560c877a9123
parent2c386ba63955cd0e4d7960166313652388525b4c
RDMA/mlx5: Don't remove cache MRs when a delay is needed

BugLink: https://bugs.launchpad.net/bugs/1969107
[ Upstream commit 84c2362fb65d69c721fec0974556378cbb36a62b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 5b88519b78e85f4bcc2598d04bf3683e9f2268b0)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/infiniband/hw/mlx5/mr.c