On Tue, Jul 24, 2018 at 08:59:58PM +0900, Tetsuo Handa wrote: > Roman, will you check this cleanup patch? This patch applies on top of next-20180724. > I assumed that your series do not kill processes which current thread should not > wait for termination. Hi Tetsuo! > > From 86ba99fbf73a9eda0df5ee4ae70c075781e83f81 Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> > Date: Tue, 24 Jul 2018 14:00:45 +0900 > Subject: [PATCH] mm,oom: Check pending victims earlier in out_of_memory(). > > The "mm, oom: cgroup-aware OOM killer" patchset introduced INFLIGHT_VICTIM > in order to replace open-coded ((void *)-1UL). But (regarding CONFIG_MMU=y > case) we have a list of inflight OOM victim threads which are connected to > oom_reaper_list. Thus we can check whether there are inflight OOM victims > before starting process/memcg list traversal. Since it is likely that only > few threads are linked to oom_reaper_list, checking all victims' OOM domain > will not matter. I have a couple of top-level concerns: 1) You're doubling the size of oom_reaper memory footprint in task_struct. I doubt, that code cleanup really worth it. If it's absolutely necessary to resolve the lockup, which you mentioned, it should be explained explicitly. 2) There are several cosmetic changes in this patch, which makes reviewing harder. Can you, please, split it into several parts. Thanks!