cgroup : remove the ns_cgroup
Subsystems (9)
PATCH 1/1 cgroup : remove the ns_cgroup
The ns_cgroup is an annoying cgroup at the namespace / cgroup frontier and leads to some problems:
* cgroup creation is out-of-control
* cgroup name can conflict when pids are looping
* it is not possible to have a single process handling a lot of namespaces without falling in a exponential creation time
* we may want to create a namespace without creating a cgroup
The ns_cgroup was replaced by a compatibility flag 'clone_children', where a newly created cgroup will copy the parent cgroup values. The userspace has to manually create a cgroup and add a task to the 'tasks' file.
This patch removes the ns_cgroup as suggested in the following thread:
https://lists.linux-foundation.org/pipermail/containers/2009-June/018616.html
The 'cgroup_clone' function is removed because it is no longer used.
--- Documentation/cgroups/cgroups.txt | 2 +- arch/mips/configs/bcm47xx_defconfig | 1 - arch/mn10300/configs/asb2364_defconfig | 1 - arch/powerpc/configs/ppc6xx_defconfig | 1 - arch/powerpc/configs/pseries_defconfig | 1 - arch/sh/configs/apsh4ad0a_defconfig | 1 - arch/sh/configs/sdk7786_defconfig | 1 - arch/sh/configs/se7206_defconfig | 1 - arch/sh/configs/shx3_defconfig | 1 - arch/sh/configs/urquell_defconfig | 1 - arch/x86/configs/i386_defconfig | 1 - arch/x86/configs/x86_64_defconfig | 1 - include/linux/cgroup.h | 3 - include/linux/cgroup_subsys.h | 6 -- include/linux/nsproxy.h | 9 --- init/Kconfig | 8 -- kernel/Makefile | 1 - kernel/cgroup.c | 116 ------------------------------- kernel/cpuset.c | 7 +- kernel/fork.c | 6 -- kernel/ns_cgroup.c | 118 -------------------------------- kernel/nsproxy.c | 4 - 22 files changed, 4 insertions(+), 287 deletions(-) delete mode 100644 kernel/ns_cgroup.c
Documentation/cgroups/cgroups.txt +1 -1
@@ -618,7 +618,7 @@ always handled well. void post_clone(struct cgroup_subsys *ss, struct cgroup *cgrp) (cgroup_mutex held by caller) -Called at the end of cgroup_clone() to do any parameter +Called during cgroup_create() to do any parameter initialization which might be required before a task could attach. For example in cpusets, no task may attach before 'cpus' and 'mems' are set up.
arch/mips/configs/bcm47xx_defconfig +0 -1
@@ -16,7 +16,6 @@ CONFIG_TASK_IO_ACCOUNTING=y CONFIG_AUDIT=y CONFIG_TINY_RCU=y CONFIG_CGROUPS=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_CPUACCT=y CONFIG_RELAY=y CONFIG_BLK_DEV_INITRD=y
arch/mn10300/configs/asb2364_defconfig +0 -1
@@ -8,7 +8,6 @@ CONFIG_TASK_XACCT=y CONFIG_TASK_IO_ACCOUNTING=y CONFIG_LOG_BUF_SHIFT=14 CONFIG_CGROUPS=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CGROUP_CPUACCT=y
arch/powerpc/configs/ppc6xx_defconfig +0 -1
@@ -10,7 +10,6 @@ CONFIG_TASK_XACCT=y CONFIG_TASK_IO_ACCOUNTING=y CONFIG_AUDIT=y CONFIG_CGROUPS=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_DEVICE=y CONFIG_CGROUP_CPUACCT=y CONFIG_RESOURCE_COUNTERS=y
arch/powerpc/configs/pseries_defconfig +0 -1
@@ -15,7 +15,6 @@ CONFIG_AUDITSYSCALL=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_CGROUPS=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CPUSETS=y
arch/sh/configs/apsh4ad0a_defconfig +0 -1
@@ -7,7 +7,6 @@ CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=14 CONFIG_CGROUPS=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CGROUP_CPUACCT=y
arch/sh/configs/sdk7786_defconfig +0 -1
@@ -12,7 +12,6 @@ CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_CGROUPS=y CONFIG_CGROUP_DEBUG=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CPUSETS=y
arch/sh/configs/se7206_defconfig +0 -1
@@ -8,7 +8,6 @@ CONFIG_RCU_TRACE=y CONFIG_LOG_BUF_SHIFT=14 CONFIG_CGROUPS=y CONFIG_CGROUP_DEBUG=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_DEVICE=y CONFIG_CGROUP_CPUACCT=y CONFIG_RESOURCE_COUNTERS=y
arch/sh/configs/shx3_defconfig +0 -1
@@ -9,7 +9,6 @@ CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=14 CONFIG_CGROUPS=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CGROUP_CPUACCT=y
arch/sh/configs/urquell_defconfig +0 -1
@@ -9,7 +9,6 @@ CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=14 CONFIG_CGROUPS=y CONFIG_CGROUP_DEBUG=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CPUSETS=y
arch/x86/configs/i386_defconfig +0 -1
@@ -10,7 +10,6 @@ CONFIG_TASK_IO_ACCOUNTING=y CONFIG_AUDIT=y CONFIG_LOG_BUF_SHIFT=18 CONFIG_CGROUPS=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_FREEZER=y CONFIG_CPUSETS=y CONFIG_CGROUP_CPUACCT=y
arch/x86/configs/x86_64_defconfig +0 -1
@@ -11,7 +11,6 @@ CONFIG_TASK_IO_ACCOUNTING=y CONFIG_AUDIT=y CONFIG_LOG_BUF_SHIFT=18 CONFIG_CGROUPS=y -CONFIG_CGROUP_NS=y CONFIG_CGROUP_FREEZER=y CONFIG_CPUSETS=y CONFIG_CGROUP_CPUACCT=y
include/linux/cgroup.h +0 -3
@@ -552,9 +552,6 @@ static inline struct cgroup* task_cgroup(struct task_struct *task,return task_subsys_state (task, subsys_id)->cgroup; } -int cgroup_clone (struct task_struct *tsk,struct cgroup_subsys *ss, -char *nodename); -/* A cgroup_iter should be treated as an opaque object */ struct cgroup_iter {struct list_head *cg_link;
include/linux/cgroup_subsys.h +0 -6
@@ -19,12 +19,6 @@ SUBSYS(debug)/* */ -#ifdef CONFIG_CGROUP_NS -SUBSYS(ns) -#endif - -/* */ -#ifdef CONFIG_CGROUP_SCHED SUBSYS(cpu_cgroup)#endif
include/linux/nsproxy.h +0 -9
@@ -81,13 +81,4 @@ static inline void get_nsproxy(struct nsproxy *ns) atomic_inc(&ns->count); } -#ifdef CONFIG_CGROUP_NS -int ns_cgroup_clone (struct task_struct *tsk,struct pid *pid); -#else -static inline int ns_cgroup_clone (struct task_struct *tsk,struct pid *pid) -{ -return 0 ; -} -#endif -#endif
init/Kconfig +0 -8
@@ -582,14 +582,6 @@ config CGROUP_DEBUG Say N if unsure. -config CGROUP_NS - bool "Namespace cgroup subsystem" - help - Provides a simple namespace cgroup subsystem to - provide hierarchical naming of sets of namespaces, - for instance virtual servers and checkpoint/restart - jobs. - config CGROUP_FREEZER bool "Freezer cgroup subsystem" help
kernel/Makefile +0 -1
@@ -62,7 +62,6 @@ obj-$(CONFIG_COMPAT) += compat.o obj-$(CONFIG_CGROUPS) += cgroup.o obj-$(CONFIG_CGROUP_FREEZER) += cgroup_freezer.o obj-$(CONFIG_CPUSETS) += cpuset.o -obj-$(CONFIG_CGROUP_NS) += ns_cgroup.o obj-$(CONFIG_UTS_NS) += utsname.o obj-$(CONFIG_USER_NS) += user_namespace.o obj-$(CONFIG_PID_NS) += pid_namespace.o
kernel/cgroup.c +0 -116
122 lines not on this page · raw message
kernel/cpuset.c +3 -4
@@ -1828,10 +1828,9 @@ static int cpuset_populate(struct cgroup_subsys *ss, struct cgroup *cont) }/* -* post_clone() is called at the end of cgroup_clone(). -* 'cgroup' was just created automatically as a result of -* a cgroup_clone(), and the current task is about to -* be moved into 'cgroup'. +* post_clone() is called during cgroup_create() when the +* clone_children mount argument was specified. The cgroup +* can not yet have any tasks. * * Currently we refuse to set up the cgroup - thereby * refusing the task to be entered, and as a result refusing
kernel/fork.c +0 -6
@@ -1193,12 +1193,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,if (clone_flags &CLONE_THREAD ) p->tgid = current->tgid; -if (current->nsproxy != p->nsproxy) { - retval =ns_cgroup_clone (p, pid); -if (retval) - goto bad_fork_free_pid; - } - p->set_child_tid = (clone_flags &CLONE_CHILD_SETTID ) ? child_tidptr :NULL ;/* * Clear TID on mm_release()?
kernel/ns_cgroup.c deleted +0 -118
118 lines not on this page · raw message
kernel/nsproxy.c +0 -4
@@ -198,10 +198,6 @@ int unshare_nsproxy_namespaces(unsigned long unshare_flags, goto out; } - err =ns_cgroup_clone (current,task_pid (current)); -if (err) -put_nsproxy (*new_nsp); - out:return err; }
Signature · 1 line
1.7.1
Quoted 28 lines · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano…
The
ns_cgroupis an annoying cgroup at the namespace / cgroup frontier and leads to some problems:* cgroup creation is out-of-control
* cgroup name can conflict when pids are looping
* it is not possible to have a single process handling a lot of namespaces without falling in a exponential creation time
* we may want to create a namespace without creating a cgroupThe
ns_cgroupwas replaced by a compatibility flag 'clone_children', where a newly created cgroup will copy the parent cgroup values. The userspace has to manually create a cgroup and add a task to the 'tasks' file.This patch removes the
ns_cgroupas suggested in the following thread:https://lists.linux-foundation.org/pipermail/containers/2009-June/018616.html
The '
cgroup_clone' function is removed because it is no longer used.Signed-off-by Daniel Lezcano <[email protected]>Signed-off-by Serge E. Hallyn <[email protected]>Cc Eric W. Biederman <ebiederm-aS9lmoZGLiVWk0Htik3J/[email protected]>Cc Jamal Hadi Salim <hadi-fAAogVwAN2Kw5LPnMra/[email protected]>Reviewed-by Li Zefan <[email protected]>Acked-by Paul Menage <[email protected]>
Quoted 3 lines
...
22 files changed, 4 insertions(+), 287 deletions(-)
I didn't see that one coming.
This change is userspace-visible, is it not? What are the implications of this? There's some discussion in that nearly-two-year-old thread regarding making provision for back-compatibility but I'm not seeing such things in this patch?
Andrew Morton
maintainerQuoted 28 lines · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano <[email protected]>…
The
ns_cgroupis an annoying cgroup at the namespace / cgroup frontier and leads to some problems:* cgroup creation is out-of-control
* cgroup name can conflict when pids are looping
* it is not possible to have a single process handling a lot of namespaces without falling in a exponential creation time
* we may want to create a namespace without creating a cgroupThe
ns_cgroupwas replaced by a compatibility flag 'clone_children', where a newly created cgroup will copy the parent cgroup values. The userspace has to manually create a cgroup and add a task to the 'tasks' file.This patch removes the
ns_cgroupas suggested in the following thread:https://lists.linux-foundation.org/pipermail/containers/2009-June/018616.html
The '
cgroup_clone' function is removed because it is no longer used.Signed-off-by Daniel Lezcano <[email protected]>Signed-off-by Serge E. Hallyn <[email protected]>Cc Eric W. Biederman <[email protected]>Cc Jamal Hadi Salim <[email protected]>Reviewed-by Li Zefan <[email protected]>Acked-by Paul Menage <[email protected]>Acked-by Matt Helsley <[email protected]>
Quoted 3 lines
...
22 files changed, 4 insertions(+), 287 deletions(-)
I didn't see that one coming.
This change is userspace-visible, is it not? What are the implications of this? There's some discussion in that nearly-two-year-old thread regarding making provision for back-compatibility but I'm not seeing such things in this patch?
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano…
This patch removes the
ns_cgroupas suggested in the following thread:
I had this patch queued up in September last year, but dropped it. Why did I do that?
Andrew Morton
maintainerQuoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano <[email protected]>…
This patch removes the
ns_cgroupas suggested in the following thread:
I had this patch queued up in September last year, but dropped it. Why did I do that?
Li Zefan
Acked-by Paul MenageQuoted 7 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano <[email protected]>…
This patch removes the
ns_cgroupas suggested in the following thread:I had this patch queued up in September last year, but dropped it. Why did I do that?
Because you wanted to wait for some time for users (if any) to notice this coming change.
Author: Daniel Lezcano <[email protected]> Date: Wed Oct 27 15:33:38 2010 -0700
cgroup: notify ns_cgroup deprecated
The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated.
Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails).
Update the feature remove schedule file with the deprecated ns_cgroup.
Li Zefan
Acked-by Paul MenageQuoted 7 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano…
This patch removes the
ns_cgroupas suggested in the following thread:I had this patch queued up in September last year, but dropped it. Why did I do that?
Because you wanted to wait for some time for users (if any) to notice this coming change.
Author: Daniel Lezcano <[email protected]> Date: Wed Oct 27 15:33:38 2010 -0700
cgroup: notify ns_cgroup deprecated
The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated.
Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails).
Update the feature remove schedule file with the deprecated ns_cgroup.
Quoted 25 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan…
Quoted 7 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano…
This patch removes the
ns_cgroupas suggested in the following thread:I had this patch queued up in September last year, but dropped it. Why did I do that?
Because you wanted to wait for some time for users (if any) to notice this coming change.
Author: Daniel Lezcano <[email protected]> Date: Wed Oct 27 15:33:38 2010 -0700cgroup: notify
ns_cgroupdeprecatedThe
ns_cgroupwill be removed very soon. Let's warn, for this version,ns_cgroupis deprecated.Make
ns_cgroupandclone_childrenexclusive. If theclone_childrenis set and thens_cgroupis mounted, let's fail with EINVAL when thens_cgroupsubsys is created (a printk will help the user to understand why the creation fails).
Quoted 6 lines
Update the feature remove schedule file with the deprecated
ns_cgroup.Signed-off-by Daniel Lezcano <[email protected]>Acked-by Paul Menage <[email protected]>Signed-off-by Andrew Morton <akpm-de/[email protected]>Signed-off-by Linus Torvalds <torvalds-de/[email protected]>
ooh, that was clever of me.
Here is the text which was missing from the changelog:
This is a userspace-visible change. Commit 45531757b45c ("cgroup:
notify ns_cgroup deprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.
Please provide XXX.
How do we know that 2.6.37->2.6.38 is long enough? Will any major distros be released containing this warning in that timeframe? I doubt it.
Andrew Morton
maintainerQuoted 25 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan <[email protected]> wrote:
Quoted 7 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano <[email protected]>…
This patch removes the
ns_cgroupas suggested in the following thread:I had this patch queued up in September last year, but dropped it. Why did I do that?
Because you wanted to wait for some time for users (if any) to notice this coming change.
Author: Daniel Lezcano <[email protected]> Date: Wed Oct 27 15:33:38 2010 -0700cgroup: notify
ns_cgroupdeprecatedThe
ns_cgroupwill be removed very soon. Let's warn, for this version,ns_cgroupis deprecated.Make
ns_cgroupandclone_childrenexclusive. If theclone_childrenis set and thens_cgroupis mounted, let's fail with EINVAL when thens_cgroupsubsys is created (a printk will help the user to understand why the creation fails).
Quoted 6 lines
Update the feature remove schedule file with the deprecated
ns_cgroup.Signed-off-by Daniel Lezcano <[email protected]>Acked-by Paul Menage <[email protected]>Signed-off-by Andrew Morton <[email protected]>Signed-off-by Linus Torvalds <[email protected]>
ooh, that was clever of me.
Here is the text which was missing from the changelog:
This is a userspace-visible change. Commit 45531757b45c ("cgroup:
notify ns_cgroup deprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.
Please provide XXX.
How do we know that 2.6.37->2.6.38 is long enough? Will any major distros be released containing this warning in that timeframe? I doubt it.
Quoted 35 lines · Andrew Morton
Quoted 23 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan<lizf-BthXqXjhjHXQFUHtdCDX3A@public.…
Quoted 6 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel…
This patch removes the
ns_cgroupas suggested in the following thread:I had this patch queued up in September last year, but dropped it. Why did I do that?
Because you wanted to wait for some time for users (if any) to notice this coming change.
Author: Daniel Lezcano<[email protected]> Date: Wed Oct 27 15:33:38 2010 -0700cgroup: notify
ns_cgroupdeprecatedThe
ns_cgroupwill be removed very soon. Let's warn, for this version,ns_cgroupis deprecated.Make
ns_cgroupandclone_childrenexclusive. If theclone_childrenis set and thens_cgroupis mounted, let's fail with EINVAL when thens_cgroupsubsys is created (a printk will help the user to understand why the creation fails).Quoted 6 lines
Update the feature remove schedule file with the deprecated
ns_cgroup.Signed-off-by Daniel Lezcano<[email protected]>Acked-by Paul Menage<[email protected]>Signed-off-by Andrew Morton<akpm-de/[email protected]>Signed-off-by Linus Torvalds<torvalds-de/[email protected]>ooh, that was clever of me.
Here is the text which was missing from the changelog:
Quoted 7 lines
This is a userspace-visible change. Commit
45531757b45c("cgroup:
notifyns_cgroupdeprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.Please provide XXX.
Ok, AFAIK nobody makes use of the ns_cgroup except the LXC userspace tools which I maintain and where
the backward compatibility with the ns_cgroup and the clone_children flag is already implemented.
Since today nobody seems to be affected by this.
I Cc'ed the libvirt mailing list.
Quoted 3 lines
How do we know that 2.6.37->2.6.38 is long enough? Will any major distros be released containing this warning in that timeframe? I doubt it.
Hmm, maybe it is too short but I don't think someone will complain about this feature removal.
Google chromium is using the namespaces, hence a lot of cgroup is created on the system. The vsftpd and some pam modules uses the namespaces too.
I won't be surprised if one of these applications fails with 'clone' returning EEXIST ...
Quoted 35 lines · Andrew Morton
Quoted 23 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan<[email protected]> wrote:
Quoted 6 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano<[email protected]>…
This patch removes the
ns_cgroupas suggested in the following thread:I had this patch queued up in September last year, but dropped it. Why did I do that?
Because you wanted to wait for some time for users (if any) to notice this coming change.
Author: Daniel Lezcano<[email protected]> Date: Wed Oct 27 15:33:38 2010 -0700cgroup: notify
ns_cgroupdeprecatedThe
ns_cgroupwill be removed very soon. Let's warn, for this version,ns_cgroupis deprecated.Make
ns_cgroupandclone_childrenexclusive. If theclone_childrenis set and thens_cgroupis mounted, let's fail with EINVAL when thens_cgroupsubsys is created (a printk will help the user to understand why the creation fails).Quoted 6 lines
Update the feature remove schedule file with the deprecated
ns_cgroup.Signed-off-by Daniel Lezcano<[email protected]>Acked-by Paul Menage<[email protected]>Signed-off-by Andrew Morton<[email protected]>Signed-off-by Linus Torvalds<[email protected]>ooh, that was clever of me.
Here is the text which was missing from the changelog:
Quoted 7 lines
This is a userspace-visible change. Commit
45531757b45c("cgroup:
notifyns_cgroupdeprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.Please provide XXX.
Ok, AFAIK nobody makes use of the ns_cgroup except the LXC userspace tools which I maintain and where the backward compatibility with the ns_cgroup and the clone_children flag is already implemented. Since today nobody seems to be affected by this.
I Cc'ed the libvirt mailing list.
Quoted 3 lines
How do we know that 2.6.37->2.6.38 is long enough? Will any major distros be released containing this warning in that timeframe? I doubt it.
Hmm, maybe it is too short but I don't think someone will complain about this feature removal.
Google chromium is using the namespaces, hence a lot of cgroup is created on the system. The vsftpd and some pam modules uses the namespaces too. I won't be surprised if one of these applications fails with 'clone' returning EEXIST ...
Quoted 44 lines · Daniel Lezcano
Quoted 35 lines · Andrew Morton
Quoted 23 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan<lizf-BthXqXjhjHXQFUHtdCDX3A@public.…
Quoted 6 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel…
This patch removes the
ns_cgroupas suggested in the following thread:I had this patch queued up in September last year, but dropped it. Why did I do that?
Because you wanted to wait for some time for users (if any) to notice this coming change.
Author: Daniel Lezcano<[email protected]> Date: Wed Oct 27 15:33:38 2010 -0700cgroup: notify
ns_cgroupdeprecatedThe
ns_cgroupwill be removed very soon. Let's warn, for this version,ns_cgroupis deprecated.Make
ns_cgroupandclone_childrenexclusive. If theclone_childrenis set and thens_cgroupis mounted, let's fail with EINVAL when thens_cgroupsubsys is created (a printk will help the user to understand why the creation fails).Quoted 6 lines
Update the feature remove schedule file with the deprecated
ns_cgroup.Signed-off-by Daniel Lezcano<[email protected]>Acked-by Paul Menage<[email protected]>Signed-off-by Andrew Morton<akpm-de/[email protected]>Signed-off-by Linus Torvalds<torvalds-de/[email protected]>ooh, that was clever of me.
Here is the text which was missing from the changelog:
Quoted 7 lines
This is a userspace-visible change. Commit
45531757b45c("cgroup:
notifyns_cgroupdeprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.Please provide XXX.
Quoted 7 lines
Ok, AFAIK nobody makes use of the
ns_cgroupexcept the LXC userspace tools which I maintain and where
the backward compatibility with thens_cgroupand theclone_childrenflag is already implemented.
Since today nobody seems to be affected by this.I Cc'ed the libvirt mailing list.
Removing 'ns_cgroup' won't impact libvirt's container support in any negative way, so fine by me.
Regards,
Daniel
Quoted 44 lines · Daniel Lezcano
Quoted 35 lines · Andrew Morton
Quoted 23 lines · On Thu, 27 Jan 2011 09:08:51 +0800 Li Zefan<[email protected]> wrote:
Quoted 6 lines · Andrew Morton
Quoted 1 line · On Tue, 25 Jan 2011 10:39:48 +0100 Daniel Lezcano<[email protected]>…
This patch removes the
ns_cgroupas suggested in the following thread:I had this patch queued up in September last year, but dropped it. Why did I do that?
Because you wanted to wait for some time for users (if any) to notice this coming change.
Author: Daniel Lezcano<[email protected]> Date: Wed Oct 27 15:33:38 2010 -0700cgroup: notify
ns_cgroupdeprecatedThe
ns_cgroupwill be removed very soon. Let's warn, for this version,ns_cgroupis deprecated.Make
ns_cgroupandclone_childrenexclusive. If theclone_childrenis set and thens_cgroupis mounted, let's fail with EINVAL when thens_cgroupsubsys is created (a printk will help the user to understand why the creation fails).Quoted 6 lines
Update the feature remove schedule file with the deprecated
ns_cgroup.Signed-off-by Daniel Lezcano<[email protected]>Acked-by Paul Menage<[email protected]>Signed-off-by Andrew Morton<[email protected]>Signed-off-by Linus Torvalds<[email protected]>ooh, that was clever of me.
Here is the text which was missing from the changelog:
Quoted 7 lines
This is a userspace-visible change. Commit
45531757b45c("cgroup:
notifyns_cgroupdeprecated") (merged into 2.6.27) caused the kernel to emit a printk warning users that the feature is planned for removal. Since that time we have heard from XXX users who were affected by this.Please provide XXX.
Quoted 7 lines
Ok, AFAIK nobody makes use of the
ns_cgroupexcept the LXC userspace tools which I maintain and where
the backward compatibility with thens_cgroupand theclone_childrenflag is already implemented.
Since today nobody seems to be affected by this.I Cc'ed the libvirt mailing list.
Removing 'ns_cgroup' won't impact libvirt's container support in any negative way, so fine by me.
Regards,
Daniel