|
@@ -1084,10 +1084,6 @@ static int __set_oom_adj(struct file *file, int oom_adj, bool legacy)
|
|
|
|
|
|
|
|
task_lock(p);
|
|
task_lock(p);
|
|
|
if (!p->vfork_done && process_shares_mm(p, mm)) {
|
|
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;
|
|
p->signal->oom_score_adj = oom_adj;
|
|
|
if (!legacy && has_capability_noaudit(current, CAP_SYS_RESOURCE))
|
|
if (!legacy && has_capability_noaudit(current, CAP_SYS_RESOURCE))
|
|
|
p->signal->oom_score_adj_min = (short)oom_adj;
|
|
p->signal->oom_score_adj_min = (short)oom_adj;
|