[Devel] [PATCH rh7 6/6] mm: enable oom grouping rules on OOM
Vladimir Davydov
vdavydov at parallels.com
Wed Jun 3 07:56:53 PDT 2015
It has already been ported from RH6 and we only need to make oom_badness
use it.
Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
mm/oom_kill.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 797103067d19..c99a5f559286 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -164,7 +164,7 @@ unsigned long oom_badness(struct task_struct *p, struct mem_cgroup *memcg,
if (!p)
return 0;
- adj = (long)p->signal->oom_score_adj;
+ adj = get_task_oom_score_adj(p);
#ifdef CONFIG_VE
/* Ignore oom_score_adj of containerized tasks on system-wide OOM */
if (global && p->task_ve != &ve0)
--
2.1.4
More information about the Devel
mailing list