Re: [PATCH REPOST 1/2] signal: Add proper comment about the preempt-disable in ptrace_stop().

From: Oleg Nesterov
Date: Tue Jun 06 2023 - 07:09:39 EST


On 06/06, Sebastian Andrzej Siewior wrote:
>
> Commit 53da1d9456fe7 ("fix ptrace slowness") added a preempt-disable section
> between read_unlock() and the following schedule() invocation without
> explaining why it is needed.
>
> Replace the comment with an explanation why this is needed. Clarify that
> it is needed for correctness but for performance reasons.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>

Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>