Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp235611pxb; Fri, 15 Jan 2021 01:47:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzozowP62vCk8xC+U0px7TpjYfxdB/W7jDp+HvULXqfHU1+sDPlq9hvT9eWWKqiHre5e7+Y X-Received: by 2002:a50:f304:: with SMTP id p4mr8710238edm.118.1610704040794; Fri, 15 Jan 2021 01:47:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610704040; cv=none; d=google.com; s=arc-20160816; b=crpE8zIb0VpQZbSnnpKZpxaUDnrs9u9ysQWIlzi6y6XXafsqSL433VIHPlmAhVFIyp xFNU2OTZC1ymZsI0QZEvHyJLTfxkuKAls3Oi4BmDqIZjQnMI2uf5b/ybraS9KryE8RD9 mtfcQGjbJ4CutrZuuZtYtQk5f4P8a9pktof7C/q9ID4P4/blCVXUq3wOmWBbAG3CBSGC I01beQd5VRdmD9O88ZzstvyiqhsMexTatXiDAM4E6ttsNtk305XmJy+c6sLeeu9PAIEN frsGEURMUgMzd0Ue9ZODJnpnryYwX8FCvBnW0zaeC/iDGu4QGbEu4KkGEC+VDzrIhIN3 vnrg== 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=b10iDFqKBReH9WHXesiCbSiRBEg30TlxBX0QRO0Pgns=; b=RZEA3Pj2tX4pPvEWY24ld67aqXa4w1u4dDA9bQr4Cr/ffUU5HbrbpAcaKmQTrFtCgE 64xesOII4IGKk+F0ai07IPCJ5E2jkZyKSpCYeeAuLTjiZDT3nJ6EezcOAxlkIPzb0mHF TkiMuDJyP0jDwsf+kFRV2oCLy3R6wbeA8GHaQQjX1d08uyzEz1XGoU7HD0jcEDNLZqko F/2jBygLuPYn3sWyroxy4dftGm93wyaTo/zAx8nAOzkwZAKPckrSuT+pODgh5y7STT1/ 1/0qSi6CGiHavbSvcJjYp6QYYNYUd+Ei6b04O//P+RD8vffcjdE1plf3ictG2+ETyssB 8gcw== 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 u3si3681280edy.299.2021.01.15.01.46.56; Fri, 15 Jan 2021 01:47:20 -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 S1730304AbhAOJpf (ORCPT + 99 others); Fri, 15 Jan 2021 04:45:35 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:11538 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbhAOJpd (ORCPT ); Fri, 15 Jan 2021 04:45:33 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DHGTT3bXfzMKc3; Fri, 15 Jan 2021 17:43:41 +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 17:44:50 +0800 From: Tang Yizhou To: CC: , Ding Tianhong , Zhou Guanghui , Chen Weilong Subject: [PATCH] mm, oom: Fix a comment in dump_task Date: Fri, 15 Jan 2021 17:56:13 +0800 Message-ID: <20210115095613.960-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: Ding Tianhong Cc: Zhou Guanghui Cc: Chen Weilong --- 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