Re: [PATCH] IB/hfi1: Shutdown self-rearming timers before freeing
From: Leon Romanovsky
Date: Wed Sep 30 2026 - 10:21:11 EST
On Wed, 30 Sep 2026 15:04:55 +0800, Runyu Xiao wrote:
> The HFI1 receive error and synthetic counter timers rearm themselves from
> their callbacks. Their cleanup paths use timer_delete_sync(), which only
> waits for a running callback and does not prevent a concurrent or
> subsequent rearm.
>
> Use timer_shutdown_sync() when releasing these timers. This prevents a
> callback from enqueueing either timer after cleanup begins, before the
> containing hfi1_devdata is freed.
>
> [...]
Applied, thanks!
[1/1] IB/hfi1: Shutdown self-rearming timers before freeing
https://git.kernel.org/rdma/rdma/c/9d3259e41ccd50
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>