* [PATCH] mm, oom: Fix a comment in dump_task
@ 2021-01-15 9:56 Tang Yizhou
0 siblings, 0 replies; only message in thread
From: Tang Yizhou @ 2021-01-15 9:56 UTC (permalink / raw)
To: linux-mm; +Cc: linux-kernel, Ding Tianhong, Zhou Guanghui, Chen Weilong
If p is a kthread, it will be checked in oom_unkillable_task() so
we can delete the corresponding comment.
Signed-off-by: Tang Yizhou <tangyizhou@huawei.com>
Cc: Ding Tianhong <dingtianhong@huawei.com>
Cc: Zhou Guanghui <zhouguanghui1@huawei.com>
Cc: Chen Weilong <chenweilong@huawei.com>
---
mm/oom_kill.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 04b19b7b5435..9f043ad29554 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -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;
}
--
2.22.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-15 9:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-15 9:56 [PATCH] mm, oom: Fix a comment in dump_task Tang Yizhou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).