summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorShakeel Butt2019-07-12 06:00:23 +0200
committerLinus Torvalds2019-07-12 20:05:47 +0200
commit5eee7e1cdb97123bb55ac14ccd3af8b6edc31537 (patch)
tree599719a7a9b06d61532fe62b8c4dab76165ba624 /mm/memcontrol.c
parentmm: memcontrol: use CSS_TASK_ITER_PROCS at mem_cgroup_scan_tasks() (diff)
downloadkernel-qcow2-linux-5eee7e1cdb97123bb55ac14ccd3af8b6edc31537.tar.gz
kernel-qcow2-linux-5eee7e1cdb97123bb55ac14ccd3af8b6edc31537.tar.xz
kernel-qcow2-linux-5eee7e1cdb97123bb55ac14ccd3af8b6edc31537.zip
mm, oom: refactor dump_tasks for memcg OOMs
dump_tasks() traverses all the existing processes even for the memcg OOM context which is not only unnecessary but also wasteful. This imposes a long RCU critical section even from a contained context which can be quite disruptive. Change dump_tasks() to be aligned with select_bad_process and use mem_cgroup_scan_tasks to selectively traverse only processes of the target memcg hierarchy during memcg OOM. Link: http://lkml.kernel.org/r/20190617231207.160865-1-shakeelb@google.com Signed-off-by: Shakeel Butt <shakeelb@google.com> Acked-by: Michal Hocko <mhocko@suse.com> Acked-by: Roman Gushchin <guro@fb.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Vladimir Davydov <vdavydov.dev@gmail.com> Cc: David Rientjes <rientjes@google.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Paul Jackson <pj@sgi.com> Cc: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions