Re: [patch V5 07/26] posix-timers: Add proper state tracking
From: Frederic Weisbecker
Date: Mon Oct 21 2024 - 09:19:47 EST
Le Tue, Oct 01, 2024 at 10:42:09AM +0200, Thomas Gleixner a écrit :
> From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>
> Right now the state tracking is done by two struct members:
>
> - it_active:
> A boolean which tracks armed/disarmed state
>
> - it_signal_seq:
> A sequence counter which is used to invalidate settings
> and prevent rearming
>
> Replace it_active with it_status and keep properly track about the states
> in one place.
>
> This allows to reuse it_signal_seq to track reprogramming, disarm and
Did you mean it_status here?
> delete operations in order to drop signals which are related to the state
> previous of those operations.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
Anyway:
Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>