* [PATCH] RDMA/mlx5: Use secs_to_jiffies() instead of msecs_to_jiffies()
@ 2025-02-19 20:52 Thorsten Blum
2025-04-07 18:07 ` Jason Gunthorpe
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2025-02-19 20:52 UTC (permalink / raw)
To: Leon Romanovsky, Jason Gunthorpe; +Cc: Thorsten Blum, linux-rdma, linux-kernel
Use secs_to_jiffies() and simplify the code.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] RDMA/mlx5: Use secs_to_jiffies() instead of msecs_to_jiffies()
2025-02-19 20:52 [PATCH] RDMA/mlx5: Use secs_to_jiffies() instead of msecs_to_jiffies() Thorsten Blum
@ 2025-04-07 18:07 ` Jason Gunthorpe
0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2025-04-07 18:07 UTC (permalink / raw)
To: Thorsten Blum; +Cc: Leon Romanovsky, linux-rdma, linux-kernel
On Wed, Feb 19, 2025 at 09:52:35PM +0100, Thorsten Blum wrote:
> Use secs_to_jiffies() and simplify the code.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
> drivers/infiniband/hw/mlx5/mr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
I took another version of this because it got more of the
msecs_to_jiffies calls than this one.
Jason
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-07 18:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-19 20:52 [PATCH] RDMA/mlx5: Use secs_to_jiffies() instead of msecs_to_jiffies() Thorsten Blum
2025-04-07 18:07 ` Jason Gunthorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).