Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1855494pxb; Mon, 18 Jan 2021 01:31:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwen+sDi96VavjCfaHuBRcYKu/3abBMeFDSlro6JHA8MVMukUiQJCqw2amKWqSExRsYSPRe X-Received: by 2002:a17:906:fa85:: with SMTP id lt5mr17019742ejb.344.1610962286356; Mon, 18 Jan 2021 01:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610962286; cv=none; d=google.com; s=arc-20160816; b=bAVgXc/6V+1drcYh34zSKZHXIG1Tuo4QzVqgKWFpwm54t3m7Rs5KtOO8NODkBhdD5K QrRStU4HC9zG9Jg2DEQHV44FB4CRK1qQN8PbfxtH5RppTcCbc5EtZuouKyTBVnSt4xyc 15g6vwFJS08wIR93H7t525uvTusVyRamE8VRhHGUAuwA1m8eFbSNktoGctmZpb4hvjRq 6rM96bmDjjVGbKFV0QdgVoTwRf1aYS2DgfLRTa/UMYS01GE159YSXjz5XLrgaHjivixq NOTzKSkYKXTlPPN8cLEbIr4k4UfnuasrrhK/zKYjQXiQxZ4c4rg7CjDPXz+AyfIig0Uh UKuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=p8fwS1DB31B2wR2MHPMBtXln7P5hjc1ZNhQlrBXPwpU=; b=MKTG6glT/WColv8UczC3Mkk0kibeijrjlW5tRXo7jnmpHv3vBrZIP2X99QtTVQ2u3L +qzDWZmw8eQL+qMVtj5GzgsF4Vmgcr+IQp4JUNZ9Xf4qxpaPEcE3miljpOpBx12yCJje B8n0+hIEr4eQ1xkTz++hG61BvYdTIjmVTgGAXrupnjwFd2m7axSDC+PizbCXBkaAWGqK KA5b6sJ/hZJg0vIZ2Hyb10/H8KlaHmtMWTjnjp388QkmoK9/BjSSH7mm4anLCyYjXb6Q OL9JInz1GYTGcZyLQpfUgg8bL6CrO2U/GBtRLfQZR5OjEonWjo212scAOAL5TWfTgL8/ ckRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=UlI0Jzs+; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi19si1864530edb.595.2021.01.18.01.31.03; Mon, 18 Jan 2021 01:31: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; dkim=pass header.i=@suse.com header.s=susede1 header.b=UlI0Jzs+; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388692AbhARJXL (ORCPT + 99 others); Mon, 18 Jan 2021 04:23:11 -0500 Received: from mx2.suse.de ([195.135.220.15]:44430 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388427AbhARJN0 (ORCPT ); Mon, 18 Jan 2021 04:13:26 -0500 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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