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

Peter Zijlstra peterz at infradead.org
Thu Apr 28 06:54:25 PDT 2022


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 ==.



More information about the linux-um mailing list