Re: [PATCH v2 1/2] exit: change the release_task() paths to call flush_sigqueue() lockless

From: Oleg Nesterov
Date: Thu Feb 06 2025 - 11:56:15 EST


On 02/06, Frederic Weisbecker wrote:
>
> > TODO:
> > - we can probably shift posix_cpu_timers_exit() as well
>
> Hmm, can't a timer be concurrently deleted between __exit_signal() set
> tsk->sighand = NULL and release sighand lock, and the actual call to
> posix_cpu_timer_exit() ? And then posix_cpu_timer_exit() calls timerqueue_del()
> on a node that don't exist anymore?

Can't answer right now, I will think about it when/if I will actually try to
make this change ;) This "TODO" note just tries to explain what else we could
try to do, and "probably" means that I am not sure yet. I can remove this spam
from the changelog, but I'd prefer to keep it as a reminder, at least for myself.

> Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>

Thanks Frederic!

Oleg.