Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2043075ybg; Thu, 30 Jul 2020 09:00:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3rZ6KbbHpBeQB96LNkIwvQoufAy5FBYiBbp6OWad1169KcCEcIbUkJAODtSnpoiUidf3+ X-Received: by 2002:a17:907:aad:: with SMTP id bz13mr3390069ejc.276.1596124809492; Thu, 30 Jul 2020 09:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596124809; cv=none; d=google.com; s=arc-20160816; b=yR++HqbNfm/zUiAq1EM/vHx4W9Ggl3pR3RTaDopq0nxkGH75VBXo9iMike7jI+qw6O DjI08qeevdvvWDs67cYqIhoaIWBroqSI8ism2X/tcHRmo77nIkJTJrj6u+nstlgiN2qg mJ5nAXVVcbefbLWyfFAeUxfB5nZ68EdmvaTQyUZ26khUp7rdnIT7ryfX/9UlZBoiZhlY NUNTf/j9juRBKQ+ycYm6o8wQMJ2zwRfbMW+i15KPsYyTG5eFKFqLTv01NEQQepeY/jaa 1iST/nPehasn6oZjG06GFrUX7l69np7WhkZaCaU+dlcRNRz3fbU/XTP/zXE/R8e92fZj KI7w== 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; bh=reqglLW1Im0s9v5Y25HMTnVCdWP96seoG2rwLAbM+20=; b=YefnZFOsJNpOqIIuuSisP3KgFwviKRsjbJfYau4G72f+dktWBpOJYXhpGefIXMbQ4L fuKAFdZ6XHaTEBEy3ywvY1e+ZBBSnq5GhVx7kCa/lyN9iHOfrIcKzreT+9dRLIm8VDet VVr4lPoxjV/XmZ6Vqr/6hJfpv9uYpTxA8zk9IVjZXsofNKoiJoFvQ2EkVwI7Ei2iSRT/ eU/eqat+4LGJfRiSS4af6vh8/obcJOB//T6AhizCbJGX0Qtk6L3/fYfXU/U9ixCJQl9p UnDcHGAvpiVk0BaFG1C3ElcCf2sRZeGvALcQynqEQA8n78tmvxIzjwkAIxXJOpI9ANPN 4Cqg== 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 y9si3249784ejc.644.2020.07.30.08.59.46; Thu, 30 Jul 2020 09:00:09 -0700 (PDT) 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 S1729852AbgG3P7a (ORCPT + 99 others); Thu, 30 Jul 2020 11:59:30 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:55811 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729762AbgG3P73 (ORCPT ); Thu, 30 Jul 2020 11:59:29 -0400 Received: from ip5f5af08c.dynamic.kabel-deutschland.de ([95.90.240.140] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1k1Axi-0000b3-Dz; Thu, 30 Jul 2020 15:59:18 +0000 Date: Thu, 30 Jul 2020 17:59:17 +0200 From: Christian Brauner To: Kirill Tkhai Cc: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, adobriyan@gmail.com, davem@davemloft.net, ebiederm@xmission.com, areber@redhat.com, serge@hallyn.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns Message-ID: <20200730155917.r3cirkffznwssesa@wittgenstein> References: <159611007271.535980.15362304262237658692.stgit@localhost.localdomain> <159611036589.535980.1765795847221907147.stgit@localhost.localdomain> <20200730133526.4lhkmlamgxjdssip@wittgenstein> <7d30f8ec-d0b7-3bae-942f-49e2f8f233e9@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7d30f8ec-d0b7-3bae-942f-49e2f8f233e9@virtuozzo.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 30, 2020 at 05:07:05PM +0300, Kirill Tkhai wrote: > On 30.07.2020 16:35, Christian Brauner wrote: > > On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: > >> Currently, every type of namespaces has its own counter, > >> which is stored in ns-specific part. Say, @net has > >> struct net::count, @pid has struct pid_namespace::kref, etc. > >> > >> This patchset introduces unified counter for all types > >> of namespaces, and converts net namespace to use it first. > >> > >> Signed-off-by: Kirill Tkhai > >> --- > > > > Any reason the refcount changes need to be tied to the procfs changes? > > Seems that should be a separate cleanup patchset which we can take > > independent of procfs changes. > > Yes, patches [1-8] are cleanup, it may go separately. > > For me there is no a problem to resend them also as a separate patchset, > say at v2, or if there is a change in 1-8, but I'm afraid to bomb mailboxes. > > If there is no a request for rework in 1-8, can they be picked directly from here? Apart from the missing include that might be an issue in ns_common.h this looks fine to me and seems like a good cleanup overall. Afaict it even loses more code than it adds. I think resending this part separately is worth it given that we're not sure whether this series will be part of procfs or a spearate thing. This won't make it for the merge window of course but unless there are technical issues with this conversion I'd pick this up for later. Thanks! Christian