Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09e1bae5 authored by Prakash Gupta's avatar Prakash Gupta Committed by Patrick Daly
Browse files

mm, oom: run the showmem notifier in oom



When the oom starts killing processes, it's useful to
be able to see the state of unaccounted memory in the system. Call the
showmem notifier to get other clients to dump out their state.

Change-Id: Id32ff6d6747fee7d0889447323ddce25282e93f6
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent 9ed5f4f2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -425,8 +425,11 @@ static void dump_header(struct oom_control *oc, struct task_struct *p)
	dump_stack();
	if (oc->memcg)
		mem_cgroup_print_oom_info(oc->memcg, p);
	else
	else {
		show_mem(SHOW_MEM_FILTER_NODES, oc->nodemask);
		show_mem_call_notifiers();
	}

	if (sysctl_oom_dump_tasks)
		dump_tasks(oc->memcg, oc->nodemask);
}