From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17275C433E0 for ; Mon, 18 Jan 2021 09:11:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8439322AED for ; Mon, 18 Jan 2021 09:11:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8439322AED Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8CDDB8D0003; Mon, 18 Jan 2021 04:11:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 87EA18D0002; Mon, 18 Jan 2021 04:11:43 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 793568D0003; Mon, 18 Jan 2021 04:11:43 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0166.hostedemail.com [216.40.44.166]) by kanga.kvack.org (Postfix) with ESMTP id 62EF28D0002 for ; Mon, 18 Jan 2021 04:11:43 -0500 (EST) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 15924814D for ; Mon, 18 Jan 2021 09:11:43 +0000 (UTC) X-FDA: 77718328086.27.lace16_2b016fe27548 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id F07173D668 for ; Mon, 18 Jan 2021 09:11:42 +0000 (UTC) X-HE-Tag: lace16_2b016fe27548 X-Filterd-Recvd-Size: 2770 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf09.hostedemail.com (Postfix) with ESMTP for ; Mon, 18 Jan 2021 09:11:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1610961101; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=p8fwS1DB31B2wR2MHPMBtXln7P5hjc1ZNhQlrBXPwpU=; b=UlI0Jzs+dTrYQtcCFa2J7lZFVMOPOVHS9VV9j4F4uqTbPr5rfVU+YM3Lqe+O+zFE/6/z43 +EEe304ietTt3wEdJovmd0H8ocHvmtbmCCccLz0BBGuxui2q3lQsrHxMo1R68mUKP9BJ55 /EhVUZACcXeocBtJxkZ6JcuYdeDqMx8= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 150BDB727; Mon, 18 Jan 2021 09:11:41 +0000 (UTC) Date: Mon, 18 Jan 2021 10:11:40 +0100 From: Michal Hocko To: Tang Yizhou Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Rientjes , KOSAKI Motohiro , Shakeel Butt Subject: Re: [PATCH v2] mm, oom: Fix a comment in dump_task Message-ID: <20210118091140.GA14336@dhcp22.suse.cz> References: <20210115142314.12903-1-tangyizhou@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210115142314.12903-1-tangyizhou@huawei.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri 15-01-21 22:23:14, Tang Yizhou wrote: > 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 Yes, this is outdated for a long time. Thanks Acked-by: 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 -- Michal Hocko SUSE Labs