Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp264968pxa; Tue, 4 Aug 2020 05:12:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMzWc2yo5UNPJVGhaUWtQJEpquum7/lYkCZ5GmAzanKDdgcQKRrE5gAR4sLhntovBjtfoj X-Received: by 2002:aa7:dc4f:: with SMTP id g15mr20478517edu.335.1596543138426; Tue, 04 Aug 2020 05:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596543138; cv=none; d=google.com; s=arc-20160816; b=U3ZC7TT1w5on9inRowSlMl3Q/T63Mo5d2hqiAiJGy14KOX43Ser4mnPVsVsfS3dx/I +x5Wg3aw0GJnIg3BXOTBhrmd0KwV3rzbz1AxnCJAHiBGH92j+r3WyR45HP0XlLwvegyB thHKQtCKRQmX/UFAOJvXuXi+hXPDRGYA3BYQ9s+n+6PlisVTW7gCFc5vKGr4bpKJwBJh BaF1YfN3FfVr1ErD/mcxN9vf42LS+MkVZl1bEHwcADcE9s9Ekv0iIJwr9n3X0xSzIMnS bmk7gpReMiNRoABc8TV+SkL8PYmCz2NaWne2ANKmmcey+6gR/+2m0QTobZFIpwqtpuNm aq0A== 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=GR8ZwN4U/CweIlnbQU6dpzwDVWeWEyORB/P0XgpfvPQ=; b=COEBX0ccUn/7OmU1OuehWQm4hYnJ//hjtc9VV/EKNTSKYsK6LWuUGYA/2wY0LRIXep YPA59cjR/cXYX7nyJqdiZq/MlqBAom+E4MdAdUL7oFUT9l3ItGVQB20uNzd0XxCXdIIh 5awHi/ghRsllyHPG18GtMfA87/CFYhHz4Gb0OuOdmsVl38mw5dgw30xPWr5IZAGa7Jrh AJfEoaW8Xr5OHQ6jo6SpHyhjbi/ztLIasUVVU/waDlBpb9q8Zv/TciNqp7fIcfo/kRBr uCaPKiqe+wgQnxaBO863enZfEq2KfDtJYh3h4lFlDF606csOyC7Zg+NTvBcgaoeIlTWR Vmyg== 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 e23si13740946ejl.751.2020.08.04.05.11.30; Tue, 04 Aug 2020 05:12:18 -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 S1726624AbgHDMKT (ORCPT + 99 others); Tue, 4 Aug 2020 08:10:19 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:46626 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730387AbgHDL5w (ORCPT ); Tue, 4 Aug 2020 07:57:52 -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 1k2vYo-0003XZ-4h; Tue, 04 Aug 2020 11:56:50 +0000 Date: Tue, 4 Aug 2020 13:56:49 +0200 From: Christian Brauner To: Kirill Tkhai Cc: akpm@linux-foundation.org, ebiederm@xmission.com, viro@zeniv.linux.org.uk, adobriyan@gmail.com, davem@davemloft.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/8] namespaces: Introduce generic refcount Message-ID: <20200804115649.kzea757e5wwpk4k3@wittgenstein> References: <159644958332.604812.13004003379291842292.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <159644958332.604812.13004003379291842292.stgit@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 03, 2020 at 01:16:10PM +0300, Kirill Tkhai wrote: > Every namespace type has its own counter. Some of them are > of refcount_t, some of them are of kref. > > This patchset introduces generic ns_common::count for any > type of namespaces instead of them. > > --- I was wondering why that series never made it to me turns out there's some weird bug in my (neo)mutt where it sometimes marks messages as read when I'm deleting completely unrelated messages. That has already cost me a talk slot for an event I really wanted to attend and now it seems to start costing me patches... I need to figure this out. Anyway, thanks for sending this. I pulled this into my tree now. Thanks! Christian > > Kirill Tkhai (8): > ns: Add common refcount into ns_common add use it as counter for net_ns > uts: Use generic ns_common::count > ipc: Use generic ns_common::count > pid: Use generic ns_common::count > user: Use generic ns_common::count > mnt: Use generic ns_common::count > cgroup: Use generic ns_common::count > time: Use generic ns_common::count > > > fs/mount.h | 3 +-- > fs/namespace.c | 4 ++-- > include/linux/cgroup.h | 5 ++--- > include/linux/ipc_namespace.h | 3 +-- > include/linux/ns_common.h | 3 +++ > include/linux/pid_namespace.h | 4 +--- > include/linux/time_namespace.h | 9 ++++----- > include/linux/user_namespace.h | 5 ++--- > include/linux/utsname.h | 9 ++++----- > include/net/net_namespace.h | 11 ++++------- > init/version.c | 2 +- > ipc/msgutil.c | 2 +- > ipc/namespace.c | 4 ++-- > kernel/cgroup/cgroup.c | 2 +- > kernel/cgroup/namespace.c | 2 +- > kernel/pid.c | 2 +- > kernel/pid_namespace.c | 13 +++---------- > kernel/time/namespace.c | 9 +++------ > kernel/user.c | 2 +- > kernel/user_namespace.c | 4 ++-- > kernel/utsname.c | 7 ++----- > net/core/net-sysfs.c | 6 +++--- > net/core/net_namespace.c | 6 +++--- > net/ipv4/inet_timewait_sock.c | 4 ++-- > net/ipv4/tcp_metrics.c | 2 +- > 25 files changed, 51 insertions(+), 72 deletions(-) > > -- > Signed-off-by: Kirill Tkhai > Acked-by: Christian Brauner >