Re: [PATCH 04/10] mm, oom_adj: make sure processes sharing mm have same view of oom_score_adj

From: Oleg Nesterov
Date: Wed Jun 15 2016 - 11:03:34 EST


On 06/09, Michal Hocko wrote:
>
> + if (!p->vfork_done && process_shares_mm(p, mm)) {
> + pr_info("updating oom_score_adj for %d (%s) from %d to %d because it shares mm with %d (%s). Report if this is unexpected.\n",
> + task_pid_nr(p), p->comm,
> + p->signal->oom_score_adj, oom_adj,
> + task_pid_nr(task), task->comm);
> + p->signal->oom_score_adj = oom_adj;

Personally I like this change.

And. I think after this change we can actually move ->oom_score_adj into mm_struct,
but lets discuss this later.

Oleg.