Skip to contentSkip to conversation

mm, oom: Fix a comment in dump_task

PATCH Superseded Tang Yizhou 3 participants 3 messages Jan 15, 2021 – Jan 18, 2021

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mm, oom: Fix a comment in dump_task

If p is a kthread, it will be checked in oom_unkillable_task() so we can delete the corresponding comment.

Cc David Rientjes <[email protected]>
Cc KOSAKI Motohiro <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Michal Hocko <[email protected]>

---
v2: Update Cc list

 mm/oom_kill.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
mm/oom_kill.c +2 -3
index 04b19b7b5435..9f043ad29554 100644
@@ -395,9 +395,8 @@ static int dump_task(struct task_struct *p, void *arg)
 	task = find_lock_task_mm(p);
 	if (!task) {
 		/*
-		 * This is a kthread or all of p's threads have already
-		 * detached their mm's.  There's no need to report
-		 * them; they can't be oom killed anyway.
+		 * All of p's threads have already detached their mm's. There's
+		 * no need to report them; they can't be oom killed anyway.
 		 */
 		return 0;
 	}
Signature · 1 line
2.22.0
maintainer Acked-by on v2 1/1
#2 lore raw
In reply to Tang Yizhou
Quoted 8 lines · Tang Yizhou

If p is a kthread, it will be checked in oom_unkillable_task() so we can delete the corresponding comment.

Cc David Rientjes <[email protected]>
Cc KOSAKI Motohiro <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Michal Hocko <[email protected]>

Yes, this is outdated for a long time. Thanks

Quoted 23 lines

---
v2: Update Cc list

 mm/oom_kill.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
mm/oom_kill.c +2 -3
index 04b19b7b5435..9f043ad29554 100644
@@ -395,9 +395,8 @@ static int dump_task(struct task_struct *p, void *arg)
 	task = find_lock_task_mm(p);
 	if (!task) {
 		/*
-		 * This is a kthread or all of p's threads have already
-		 * detached their mm's.  There's no need to report
-		 * them; they can't be oom killed anyway.
+		 * All of p's threads have already detached their mm's. There's
+		 * no need to report them; they can't be oom killed anyway.
 		 */
 		return 0;
 	}
Signature · 1 line
2.22.0
Signature · 2 lines
Michal Hocko
SUSE Labs