Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1635765ybi; Sun, 16 Jun 2019 09:27:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBmCo2EPFWVZWphdRVM3EvzSYgxL0SPjySGKdLJF4qzX48cRi3Hk6YMEwfFvlQASkj2MOa X-Received: by 2002:a63:e24c:: with SMTP id y12mr45060493pgj.276.1560702456002; Sun, 16 Jun 2019 09:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560702455; cv=none; d=google.com; s=arc-20160816; b=xaaZM8Hj9klV0IfrmYzbF3iKYiD6lUrJT1wEWCl61uKAfhaAknVaELnybdxlPlrmCP N5AuupvpC4jwl9TB4msU1bMvolUrdJ62HKVJfhEWFwdw8Kkb2TMPF71gCYlEsdgv3zp9 +F9/rOF7Xhu2NMMaNbb40vlmer+EuBeluBOoDUimdSznUbBIe5lW4oahqKOywrAI8JC/ tPhtEquQuX7NgHS0X7EPQBFJtCEDbXM3utXOoZcxTKGbmD3mcLHq67Xoxcm1Wv14xMMC a124NRKZEfEGQHzhYFy7dUUikcxMeGZBSWsgDG12HBr15SX5Tl/O8n02aHOkpKjsAj0b oAGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=S2vKWdD0glGLsN86+msjXTlKQT0jYdW+WcffeWNC3YE=; b=eMWuXmwWo27O+8vDb3xb6NiEdgJJwxnnMEfbrNScz2mB+COX9luszYhtnOb3/SZRyR qijaf9tueaQ6Ltj9gxZI6ircAxkMRRLUJpASHSejP2Ij+1ESt2jjFGfEt34ZJHfAWU89 kl2/xqdOFOySZCQl81YnDz7O3RlOMcR4fHfGADBdZ8eMRPwz7QROlvIhsRdPtcudU9f0 cELQ3pa+pmFd48pq04IRcm9HN8+E25NB1pb+TKNFPt9l9IlfHXhN37z9poEe31skciX2 c8On1sSO5lNIxeJUOeXU2qgBhLHum4wOEznYcD1thbasH4kW9E5gQmKT5LUE8bslw+97 nTTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ijVry35i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p19si7586766plr.286.2019.06.16.09.27.20; Sun, 16 Jun 2019 09:27:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ijVry35i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727229AbfFPQ0u (ORCPT + 99 others); Sun, 16 Jun 2019 12:26:50 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:39762 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbfFPQ0t (ORCPT ); Sun, 16 Jun 2019 12:26:49 -0400 Received: by mail-lf1-f68.google.com with SMTP id p24so4796737lfo.6 for ; Sun, 16 Jun 2019 09:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=S2vKWdD0glGLsN86+msjXTlKQT0jYdW+WcffeWNC3YE=; b=ijVry35ioGnqrLNPwg7Qdc3soSdUviCs43Ws+b7WZQpWZkrkjFpcNPtaadd05zyV27 eye1hNuVhPV0MdxY7n2cpTXpeBkrfTNXznuKI56iCV2VGMgcpznyH5UW3813WhJToN6a zRVPg/Xc383rOwzNidEZMCeLIjPRu2BSu1gEuPuaOLuVC14it8GWaZjxANZYjVq6SCiM yJ68jKLTUFLa6LKVMJLyZ6zGrg+qG/qlLsv29fZuMKd+2n37E5swqhwh4p0U8pcRXBx4 3qSawWU1Gj44vHvR4YtddyQ5m0ky31amOC/9CeXrdZFVMcrSZDBbxp8suFhXjS68oxfX GngQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=S2vKWdD0glGLsN86+msjXTlKQT0jYdW+WcffeWNC3YE=; b=cRMFE02lJQ7EMkLejZ9VNmKFV2K+t3WHUzT6yptMKNd8iOcM3vu4drbWVE7F37aj3k 6gXvL0u6K+FT0Z+LA1nTrNuOq4t5ttdcfwPjQMo1ocAuYwWnLpDD5T2Ku4zPwoyJCJp9 DEAFUHmWSRAIueQocrwCX3WjKyWxs35YT+Opae02mt8Yw3JBZG1nTrV4N7w6U5BDd2h0 7sslZoqDNYJJGUZWeANeqYDf+OKBdtSKZt9QWu+tnxE/F0kk33shb9lIzRkn6UpwZS4u VTToulUfBgtxG64c4lgjlvN2Wv9T5w3oFa0xbFKTR7sD7seoJjjpGqJORXex3MtScomz 6kvQ== X-Gm-Message-State: APjAAAU1tPl3YHU6JXO1Uz61TaiDHImofWYtA/vdERtmFAH+3XSPtPAU ZBto3HJts2q4YfCIpPCHOmQ= X-Received: by 2002:ac2:528e:: with SMTP id q14mr24437296lfm.17.1560702407939; Sun, 16 Jun 2019 09:26:47 -0700 (PDT) Received: from esperanza ([176.120.239.149]) by smtp.gmail.com with ESMTPSA id y12sm1482549lfy.36.2019.06.16.09.26.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 Jun 2019 09:26:47 -0700 (PDT) Date: Sun, 16 Jun 2019 19:26:45 +0300 From: Vladimir Davydov To: Roman Gushchin Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Johannes Weiner , Shakeel Butt , Waiman Long Subject: Re: [PATCH v7 06/10] mm: don't check the dying flag on kmem_cache creation Message-ID: <20190616162645.rbcjhqjceuuxgvgr@esperanza> References: <20190611231813.3148843-1-guro@fb.com> <20190611231813.3148843-7-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190611231813.3148843-7-guro@fb.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 11, 2019 at 04:18:09PM -0700, Roman Gushchin wrote: > There is no point in checking the root_cache->memcg_params.dying > flag on kmem_cache creation path. New allocations shouldn't be > performed using a dead root kmem_cache, so no new memcg kmem_cache > creation can be scheduled after the flag is set. And if it was > scheduled before, flush_memcg_workqueue() will wait for it anyway. > > So let's drop this check to simplify the code. > > Signed-off-by: Roman Gushchin Acked-by: Vladimir Davydov