linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] namespaces: Introduce generic refcount
@ 2020-08-03 10:16 Kirill Tkhai
  2020-08-03 10:16 ` [PATCH 1/8] ns: Add common refcount into ns_common add use it as counter for net_ns Kirill Tkhai
                   ` (8 more replies)
  0 siblings, 9 replies; 19+ messages in thread
From: Kirill Tkhai @ 2020-08-03 10:16 UTC (permalink / raw)
  To: christian.brauner, akpm, ebiederm, viro, adobriyan, davem,
	linux-kernel, ktkhai

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.

---

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 <ktkhai@virtuozzo.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2020-08-04 21:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03 10:16 [PATCH 0/8] namespaces: Introduce generic refcount Kirill Tkhai
2020-08-03 10:16 ` [PATCH 1/8] ns: Add common refcount into ns_common add use it as counter for net_ns Kirill Tkhai
2020-08-04 12:21   ` Eric W. Biederman
2020-08-04 12:48     ` Kirill Tkhai
2020-08-04 13:52       ` Eric W. Biederman
2020-08-04 14:36         ` Kirill Tkhai
2020-08-03 10:16 ` [PATCH 2/8] uts: Use generic ns_common::count Kirill Tkhai
2020-08-03 10:16 ` [PATCH 3/8] ipc: " Kirill Tkhai
2020-08-03 10:16 ` [PATCH 4/8] pid: " Kirill Tkhai
2020-08-03 10:16 ` [PATCH 5/8] user: " Kirill Tkhai
2020-08-03 10:16 ` [PATCH 6/8] mnt: " Kirill Tkhai
2020-08-03 10:16 ` [PATCH 7/8] cgroup: " Kirill Tkhai
2020-08-03 10:17 ` [PATCH 8/8] time: " Kirill Tkhai
2020-08-04 11:56 ` [PATCH 0/8] namespaces: Introduce generic refcount Christian Brauner
2020-08-04 12:11   ` Eric W. Biederman
2020-08-04 12:30     ` Christian Brauner
2020-08-04 13:21       ` Eric W. Biederman
2020-08-04 14:57         ` Christian Brauner
2020-08-04 21:38           ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).