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

Commit 8e0edd5e authored by Charan Teja Reddy's avatar Charan Teja Reddy
Browse files

mm: oom: update ulmk_kill_jiffies from oom context kill



When oc->only_positive_adj = true in a oom context kill, consider that
as ULMK kill and thus update the ulmk_kill_jiffies. This avoids the
premature OOM.

Change-Id: I11ce9161d43f6aa245356657c49959c85334d541
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent a0e0de01
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1157,6 +1157,12 @@ static void oom_kill_process(struct oom_control *oc, const char *message,
	 */
	oom_group = mem_cgroup_get_oom_group(victim, oc->memcg);

	/*
	 * If ->only_positive_adj = true in oom context,
	 * consider them as kill from ulmk.
	 */
	if (oc->only_positive_adj)
		ulmk_update_last_kill();
	__oom_kill_process(victim);

	/*