Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp7993pxb; Fri, 15 Jan 2021 06:15:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtekOL6zmbxuz7QNKKJFMDbZMO3Zpu5Q0mGx77AYMnaC61xLxGFH2MvpipIph1vUIe7JNn X-Received: by 2002:a17:906:e15:: with SMTP id l21mr9104620eji.509.1610720108304; Fri, 15 Jan 2021 06:15:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610720108; cv=none; d=google.com; s=arc-20160816; b=Erot0FeU7TJcyDokTBNeSRGY7PLb4uamDr5z7h78BdweAH3tC9om5RBd5IImZYkWgd LLZRLzAHiOfOfMhfZlnkFkya6QQCLCBkewf/G6pkDew2Mpm+gfsKYMATPEBzAcHj2lw3 Vo2wpDT6+jEHNQau5/iUMMTB/Nb8AhpBbygHQs6sbGzex9lGLXCSkqOsrwiio5/LDCeh mp0AsRgybSsNUYIY5w6LP0j8MdmQ7uQAiTl4ZxytnNHsgf7G1m4e0szHBUw+OzQpYihJ XJDjlq5BVkiv9BPwSRg0bjUsKaWwu3X0mj2Ko7JJUwn8s2QnEsGyVLi5Fjn1lOi9l1Fd rYaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=F13SRgz8O+4xoO55YyHKTh5XDP+4fgvnQxRjGz7Q80k=; b=YOh1r5wElDQoqqI0LvMITd0P9pJx4fDAgw5yS+I1Wir7LZRSYTAqx8HixZVQGHoE0e u4MWGNmMJrgoEdhPFpGj9AZJ1QDQZ3KUOfhBFLDPUYv/0VV1sFJWva2XbLFk2ulHBFin X/DssaaTRwtuJX9+0QpJAyFfrzNg7egBsGKU7mSHHE28nRjiAr2VvcUnQ6ZiwXqiyz9I vCL91m3lPC+OzF5NI/VBP0kVCPf9fLHrPOH26pgeXbIOUvN+wFBMC9VxiXis9XdD6u7O ZWRAYlJfIVAXE5NOGTy8fNg6JRdVasezbH86JkBF0QW0VPLi341rD8ERvyzDbq8+52Yz UQVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si3715164ejw.19.2021.01.15.06.14.44; Fri, 15 Jan 2021 06:15:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732744AbhAOOMn (ORCPT + 99 others); Fri, 15 Jan 2021 09:12:43 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:11395 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726381AbhAOOMm (ORCPT ); Fri, 15 Jan 2021 09:12:42 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4DHNPs5R0gz7VtF; Fri, 15 Jan 2021 22:10:57 +0800 (CST) Received: from huawei.com (10.175.100.227) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Fri, 15 Jan 2021 22:11:52 +0800 From: Tang Yizhou To: CC: , David Rientjes , KOSAKI Motohiro , Shakeel Butt , Michal Hocko Subject: [PATCH v2] mm, oom: Fix a comment in dump_task Date: Fri, 15 Jan 2021 22:23:14 +0800 Message-ID: <20210115142314.12903-1-tangyizhou@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.100.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: David Rientjes Cc: KOSAKI Motohiro Cc: Shakeel Butt Cc: Michal Hocko --- v2: Update Cc list 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