Re: [patch V3 8/8] posix-timers: Handle exit in do_exit() completely
From: Frederic Weisbecker
Date: Sat Sep 12 2026 - 18:17:58 EST
Le Fri, Sep 11, 2026 at 11:09:44AM +0200, Thomas Gleixner a écrit :
> From: Thomas Gleixner <tglx@xxxxxxxxxx>
>
> Now that POSIX CPU timers cannot be enqueued on a task after PF_EXITING is
> set and process wide timers cannot be enqueued when PF_EXITING is set and
> the last thread in the group is exiting, it is possible to mop up POSIX
> timers in do_exit() completely.
>
> This requires to cancel an eventually pending POSIX CPU timer task work
> right there because do_exit() invokes exit_task_work() later, which would
> be acting on torn down data.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>
--
Frederic Weisbecker
SUSE Labs