Re: [PATCH 7/9] ptrace: Simplify the wait_task_inactive call in ptrace_check_attach

From: Peter Zijlstra
Date: Thu Apr 28 2022 - 09:54:58 EST


On Thu, Apr 28, 2022 at 01:19:11PM +0200, Oleg Nesterov wrote:
> > That is also the reason I couldn't do wait_task_inactive(task, 0)
>
> Ah, I din't notice this patch uses wait_task_inactive(child, 0),
> I think it should do wait_task_inactive(child, __TASK_TRACED).

Shouldn't we then switch wait_task_inactive() so have & matching instead
of the current ==.