Re: [PATCH v3 2/3] mm, oom: remove redundant task_in_mem_cgroup() check

2019-06-27 Thread Shakeel Butt
On Tue, Jun 25, 2019 at 11:38 PM Michal Hocko wrote: > > On Mon 24-06-19 14:26:30, Shakeel Butt wrote: > > oom_unkillable_task() can be called from three different contexts i.e. > > global OOM, memcg OOM and oom_score procfs interface. At the moment > > oom_unkillable_task() does a task_in_mem_cgr

Re: [PATCH v3 2/3] mm, oom: remove redundant task_in_mem_cgroup() check

2019-06-25 Thread Michal Hocko
On Mon 24-06-19 14:26:30, Shakeel Butt wrote: > oom_unkillable_task() can be called from three different contexts i.e. > global OOM, memcg OOM and oom_score procfs interface. At the moment > oom_unkillable_task() does a task_in_mem_cgroup() check on the given > process. Since there is no reason to

[PATCH v3 2/3] mm, oom: remove redundant task_in_mem_cgroup() check

2019-06-24 Thread Shakeel Butt
oom_unkillable_task() can be called from three different contexts i.e. global OOM, memcg OOM and oom_score procfs interface. At the moment oom_unkillable_task() does a task_in_mem_cgroup() check on the given process. Since there is no reason to perform task_in_mem_cgroup() check for global OOM and