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

Commit 94c0e1ab authored by Prakash Gupta's avatar Prakash Gupta
Browse files

mm, oom: check LMK enabled for pagefault_out_of_memory()



Rely on LMK to reclaim memory and avoid OOM, when out of memory
condition is detected in a pagefault.

Change-Id: Icfdaa51d7cfb0dfe9a665bcff23357101b15f421
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent a2240c40
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1103,6 +1103,9 @@ void pagefault_out_of_memory(void)
		.order = 0,
	};

	if (IS_ENABLED(CONFIG_HAVE_LOW_MEMORY_KILLER))
		return;

	if (mem_cgroup_oom_synchronize(true))
		return;