Re: [PATCH 7/9] rust: hrtimer: expose interrupt state in hard callbacks
From: Andreas Hindborg
Date: Thu Aug 27 2026 - 09:47:02 EST
"Mike Lothian" <mike@xxxxxxxxxxxxxx> writes:
> Hard hrtimer modes guarantee that their callbacks run with local
> interrupts disabled. Carry that guarantee through HrTimerCallbackContext
> so users of IRQ-aware locks do not need to assert the callback
> context themselves.
This looks good to me. We were pondering on removing the context type
though [1]. We might have to keep it around for this to work.
Best regards,
Andreas Hindborg
[1] https://lore.kernel.org/rust-for-linux/20260825-expires-v2-v1-3-90411c6217c7@xxxxxxxxxx/