* + mm-oom-do-not-reap-task-if-there-are-live-threads-in-threadgroup.patch added to -mm tree
@ 2016-05-24 20:24 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-05-24 20:24 UTC (permalink / raw)
To: vdavydov, mhocko, penguin-kernel, mm-commits
The patch titled
Subject: mm: oom: do not reap task if there are live threads in threadgroup
has been added to the -mm tree. Its filename is
mm-oom-do-not-reap-task-if-there-are-live-threads-in-threadgroup.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-oom-do-not-reap-task-if-there-are-live-threads-in-threadgroup.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-oom-do-not-reap-task-if-there-are-live-threads-in-threadgroup.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Vladimir Davydov <vdavydov@virtuozzo.com>
Subject: mm: oom: do not reap task if there are live threads in threadgroup
If the current process is exiting, we don't invoke oom killer, instead we
give it access to memory reserves and try to reap its mm in case nobody is
going to use it. There's a mistake in the code performing this check - we
just ignore any process of the same thread group no matter if it is
exiting or not - see try_oom_reaper. Fix it.
Link: http://lkml.kernel.org/r/1464087628-7318-1-git-send-email-vdavydov@virtuozzo.com
Fixes: 3ef22dfff239 ("oom, oom_reaper: try to reap tasks which skip regular OOM killer path")Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/oom_kill.c | 2 --
1 file changed, 2 deletions(-)
diff -puN mm/oom_kill.c~mm-oom-do-not-reap-task-if-there-are-live-threads-in-threadgroup mm/oom_kill.c
--- a/mm/oom_kill.c~mm-oom-do-not-reap-task-if-there-are-live-threads-in-threadgroup
+++ a/mm/oom_kill.c
@@ -611,8 +611,6 @@ void try_oom_reaper(struct task_struct *
if (!process_shares_mm(p, mm))
continue;
- if (same_thread_group(p, tsk))
- continue;
if (fatal_signal_pending(p))
continue;
_
Patches currently in -mm which might be from vdavydov@virtuozzo.com are
mm-oom-do-not-reap-task-if-there-are-live-threads-in-threadgroup.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-24 20:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-24 20:24 + mm-oom-do-not-reap-task-if-there-are-live-threads-in-threadgroup.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).