提交 5870c2e1 编写于 作者: M Michal Hocko 提交者: Linus Torvalds

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: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 58fa2a55
...@@ -803,8 +803,9 @@ static bool task_will_free_mem(struct task_struct *task) ...@@ -803,8 +803,9 @@ static bool task_will_free_mem(struct task_struct *task)
return true; return true;
/* /*
* This is really pessimistic but we do not have any reliable way * Make sure that all tasks which share the mm with the given tasks
* to check that external processes share with our mm * 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(); rcu_read_lock();
for_each_process(p) { for_each_process(p) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册