* + mm-oom_killc-fix-task_will_free_mem-comment.patch added to -mm tree
@ 2016-08-11 20:54 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-08-11 20:54 UTC (permalink / raw)
To: mhocko, penguin-kernel, mm-commits
The patch titled
Subject: mm/oom_kill.c: fix task_will_free_mem() comment
has been added to the -mm tree. Its filename is
mm-oom_killc-fix-task_will_free_mem-comment.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-oom_killc-fix-task_will_free_mem-comment.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-oom_killc-fix-task_will_free_mem-comment.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: Michal Hocko <mhocko@kernel.org>
Subject: mm/oom_kill.c: fix task_will_free_mem() comment
Attempt to demystify the task_will_free_mem() loop.
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/oom_kill.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff -puN mm/oom_kill.c~mm-oom_killc-fix-task_will_free_mem-comment mm/oom_kill.c
--- a/mm/oom_kill.c~mm-oom_killc-fix-task_will_free_mem-comment
+++ a/mm/oom_kill.c
@@ -803,8 +803,9 @@ static bool task_will_free_mem(struct ta
return true;
/*
- * This is really pessimistic but we do not have any reliable way
- * to check that external processes share with our mm
+ * Make sure that all tasks which share the mm with the given tasks
+ * are dying as well to make sure that a) nobody pins its mm and
+ * b) the task is also reapable by the oom reaper.
*/
rcu_read_lock();
for_each_process(p) {
_
Patches currently in -mm which might be from mhocko@kernel.org are
mm-oom_killc-fix-task_will_free_mem-comment.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-11 20:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 20:54 + mm-oom_killc-fix-task_will_free_mem-comment.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.