提交 ec661706 编写于 作者: X Xu Yu 提交者: Shile Zhang

alinux: mm, memcg: abort priority oom if with oom victim

Explicitly abort mem_cgroup_select_bad_process in priority oom if there
is already a task as oom victim without MMF_OOM_SKIP flag set.
Signed-off-by: NXu Yu <xuyu@linux.alibaba.com>
Reviewed-by: NYang Shi <yang.shi@linux.alibaba.com>
上级 2061acd6
......@@ -1266,6 +1266,8 @@ void mem_cgroup_select_bad_process(struct oom_control *oc)
mem_cgroup_scan_tasks(victim, oom_evaluate_task, oc);
if (oc->use_priority_oom) {
css_put(&victim->css);
if (oc->chosen == (void *)-1UL)
goto out;
if (!oc->chosen && victim != memcg) {
do_mem_cgroup_account_oom_skip(victim, oc);
goto retry;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册