Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3047560pxb; Mon, 25 Jan 2021 05:46:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmWyPHLnBSGkvEu15Maksk60OcC+EYZCDauko5MQ3QtA+4i8LKqfF3ikfglciYRGNt2d0b X-Received: by 2002:a17:906:404a:: with SMTP id y10mr392443ejj.331.1611582386057; Mon, 25 Jan 2021 05:46:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611582386; cv=none; d=google.com; s=arc-20160816; b=1E2VwF+C7BubGXNMt2rJJzdqby1zD+BNjYh9UKgLAIWDxPbarUAsvdzL+JdZHrY1wB 2yi0g392nWUc7hZeoHNvK5b3gzWK1Mn8Ar7lfqAMj0CsFUD1oYw1ynRSnSbypE0+zvXP oGFTigKTpxtldKsP3s6vo/9u3iT0MongHJRB3/Onkdh5k0e0uWUKdfd6JYy6sfhv66vA 6U5ohh3jpMPQHq6g+0WM1QCqNDl8XzBMydaW9UxFo6ZlSlczli4DckuLxJhRBRci/zMm dfhi8CZO8oCqKdEjfUhp/GIjuYx5Lkiof1KF/q5lgV98lUXooO6/NXGkCOQMUUx1H34j YbIg== 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=Ox8z4HLh3x1cLRSawNPdhQZZG+NMU9Be84qcGk/t4VI=; b=PiPBJAhto4OvV0SZMPtdNwpfx0/2teUryoZykisYEL6R9YuhTE4gfDVvwOAsxoY2lk j4tscnAI7GErlDTmMU8SIiuwOtZdyx+dPPuAlghl6/v0uEbwwF7VfZ5CT7P/Op/4x9qU /rRMmQcu5hh3y6Wblacle7YM9Q38Xs6kkRTPQvMUDbt9BeYQNB0S6x12XODpTbxw7sJU B0hgZPuc/k/5OOhx7IcXp47hRQIlw1JGUvX1angoBmNBwoFBVr2bhFPneiCFHIOTthoZ oPhMuwtPe8j8tgjTWn3QZdkT8cbEc5TrSzAl7PzUxkanHlBQaBo24QMzryNYzos3XjGE 3qcA== 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 t8si5906597ejr.334.2021.01.25.05.46.01; Mon, 25 Jan 2021 05:46:26 -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 S1729030AbhAYNnX (ORCPT + 99 others); Mon, 25 Jan 2021 08:43:23 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:11588 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728975AbhAYNkE (ORCPT ); Mon, 25 Jan 2021 08:40:04 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DPVm41ftRzMPjk; Mon, 25 Jan 2021 21:17:56 +0800 (CST) Received: from huawei.com (10.175.100.227) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Mon, 25 Jan 2021 21:19:17 +0800 From: Tang Yizhou To: CC: , , Tang Yizhou , David Rientjes , Michal Hocko Subject: [PATCH v3] mm, oom: Fix a comment in dump_task Date: Mon, 25 Jan 2021 21:30:06 +0800 Message-ID: <20210125133006.7242-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 Acked-by: David Rientjes Acked-by: Michal Hocko --- v2: Update CC list v3: Add Acked-by tags 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