[PATCH v2] oom, oom_reaper: do not enqueue same task twice

From: Tetsuo Handa
Date: Sat Jan 26 2019 - 08:11:03 EST


On 2019/01/26 20:29, Arkadiusz MiÅkiewicz wrote:
> On 26/01/2019 12:09, Tetsuo Handa wrote:
>> Arkadiusz, will you try this patch?
>
>
> Works. Several tries and always getting 0 pids.current after ~1s.
>

Thank you for testing.

I updated this patch to use tsk->signal->oom_mm (a snapshot of
tsk->mm saved by mark_oom_victim(tsk)) rather than raw tsk->mm
so that we don't need to worry about possibility of changing
tsk->mm across multiple wake_oom_reaper(tsk) calls.