summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx5
diff options
context:
space:
mode:
authorMichael Guralnik <michaelgur@nvidia.com>2024-09-03 14:24:47 +0300
committerLeon Romanovsky <leon@kernel.org>2024-09-09 21:17:09 +0300
commit30e6bd8d3b5639f8f4261e5e6c0917ce264b8dc2 (patch)
tree5f2975d338640ece4ec228162bab6a0f190e7b8b /drivers/infiniband/hw/mlx5
parente77127ff6416b17e0b3e630ac46ee5c9a6570f57 (diff)
downloadlinux-30e6bd8d3b5639f8f4261e5e6c0917ce264b8dc2.tar.gz
linux-30e6bd8d3b5639f8f4261e5e6c0917ce264b8dc2.tar.bz2
linux-30e6bd8d3b5639f8f4261e5e6c0917ce264b8dc2.zip
RDMA/mlx5: Drop redundant work canceling from clean_keys()
The canceling of dealyed work in clean_keys() is a leftover from years back and was added to prevent races in the cleanup process of MR cache. The cleanup process was rewritten a few years ago and the canceling of delayed work and flushing of workqueue was added before the call to clean_keys(). Signed-off-by: Michael Guralnik <michaelgur@nvidia.com> Link: https://patch.msgid.link/943d21f5a9dba7b98a3e1d531e3561ffe9745d71.1725362530.git.leon@kernel.org Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mlx5')
-rw-r--r--drivers/infiniband/hw/mlx5/mr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c
index 250c246ae792..511d50491352 100644
--- a/drivers/infiniband/hw/mlx5/mr.c
+++ b/drivers/infiniband/hw/mlx5/mr.c
@@ -772,7 +772,6 @@ static void clean_keys(struct mlx5_ib_dev *dev, struct mlx5_cache_ent *ent)
{
u32 mkey;
- cancel_delayed_work(&ent->dwork);
spin_lock_irq(&ent->mkeys_queue.lock);
while (ent->mkeys_queue.ci) {
mkey = pop_mkey_locked(ent);