Skip to contentSkip to conversation

mm-oom-show-process-exiting-information-in-__oom_kill_process.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 12, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm, oom: show process exiting information in __oom_kill_process()
has been removed from the -mm tree. Its filename was
mm-oom-show-process-exiting-information-in-__oom_kill_process.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Yafang Shao <[email protected]>
Subject: mm, oom: show process exiting information in __oom_kill_process()

When the OOM killer finds a victim and tryies to kill it, if the victim is already exiting, the task mm will be NULL and no process will be killed. But the dump_header() has been already executed, so it will be strange to dump so much information without killing a process. We'd better show some helpful information to indicate why this happens.

---

 mm/oom_kill.c |    2 ++
 1 file changed, 2 insertions(+)
mm/oom_kill.c renamed from mm/oom_kill.c~mm-oom-show-process-exiting-information-in-__oom_kill_process +2 -0
@@ -861,6 +861,8 @@ static void __oom_kill_process(struct ta
 
 	p = find_lock_task_mm(victim);
 	if (!p) {
+		pr_info("%s: OOM victim %d (%s) is already exiting. Skip killing the task\n",
+			message, task_pid_nr(victim), victim->comm);
 		put_task_struct(victim);
 		return;
 	} else if (victim != p) {

_

Patches currently in -mm which might be from [email protected] are