[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250219205235.28361-2-thorsten.blum@linux.dev>
Date: Wed, 19 Feb 2025 21:52:35 +0100
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Leon Romanovsky <leon@...nel.org>,
Jason Gunthorpe <jgg@...pe.ca>
Cc: Thorsten Blum <thorsten.blum@...ux.dev>,
linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] RDMA/mlx5: Use secs_to_jiffies() instead of msecs_to_jiffies()
Use secs_to_jiffies() and simplify the code.
Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
---
drivers/infiniband/hw/mlx5/mr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c
index bb02b6adbf2c..b526e322c7b0 100644
--- a/drivers/infiniband/hw/mlx5/mr.c
+++ b/drivers/infiniband/hw/mlx5/mr.c
@@ -2033,7 +2033,7 @@ static int mlx5_revoke_mr(struct mlx5_ib_mr *mr)
spin_lock_irq(&ent->mkeys_queue.lock);
if (ent->is_tmp && !ent->tmp_cleanup_scheduled) {
mod_delayed_work(ent->dev->cache.wq, &ent->dwork,
- msecs_to_jiffies(30 * 1000));
+ secs_to_jiffies(30));
ent->tmp_cleanup_scheduled = true;
}
spin_unlock_irq(&ent->mkeys_queue.lock);
--
2.48.1
Powered by blists - more mailing lists