Re: [PATCH v1 0/2] hrtimer: Add hrtimer_forward_safe_from_callback()
From: Andreas Hindborg
Date: Thu Nov 12 2026 - 08:13:20 EST
On Mon, 02 Nov 2026 08:28:27 +0900, FUJITA Tomonori wrote:
> From: FUJITA Tomonori <fujita.tomonori@xxxxxxxxx>
>
> Safe Rust code can arm a timer while its callback is running, so the
> Rust abstraction cannot offer hrtimer_forward() from the callback as a
> safe API.
>
> Thomas suggested a helper that does the check and the update with the
> base lock held [1]. Patch 1 adds it. Patch 2 makes the Rust callback
> context use it.
>
> [...]
Applied, thanks!
[1/2] hrtimer: Add hrtimer_forward_safe_from_callback()
commit: 66efde7e1d5dfd16516715ddad21422df91d001b
[2/2] rust: hrtimer: Use hrtimer_forward_safe_from_callback()
commit: 52d29a55b2c7400445a37dfe444ec89841089df8
Best regards,
--
Andreas Hindborg <a.hindborg@xxxxxxxxxx>