The patch titled cgroup: notify ns_cgroup deprecated has been added to the -mm tree. Its filename is cgroup-notify-ns_cgroup-deprecated.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: cgroup: notify ns_cgroup deprecated From: Daniel Lezcano <daniel.lezcano@xxxxxxx> 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. Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxx> Acked-by: Paul Menage <menage@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Documentation/feature-removal-schedule.txt | 17 +++++++++++++++++ kernel/ns_cgroup.c | 8 ++++++++ 2 files changed, 25 insertions(+) diff -puN Documentation/feature-removal-schedule.txt~cgroup-notify-ns_cgroup-deprecated Documentation/feature-removal-schedule.txt --- a/Documentation/feature-removal-schedule.txt~cgroup-notify-ns_cgroup-deprecated +++ a/Documentation/feature-removal-schedule.txt @@ -545,4 +545,21 @@ Why: This is a legacy interface which Who: NeilBrown <neilb@xxxxxxx> ---------------------------- + +What: namespace cgroup (ns_cgroup) +When: 2.6.38 +Why: The ns_cgroup 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 is 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. +Who: Daniel Lezcano <daniel.lezcano@xxxxxxx> + +---------------------------- diff -puN kernel/ns_cgroup.c~cgroup-notify-ns_cgroup-deprecated kernel/ns_cgroup.c --- a/kernel/ns_cgroup.c~cgroup-notify-ns_cgroup-deprecated +++ a/kernel/ns_cgroup.c @@ -85,6 +85,14 @@ static struct cgroup_subsys_state *ns_cr return ERR_PTR(-EPERM); if (!cgroup_is_descendant(cgroup, current)) return ERR_PTR(-EPERM); + if (test_bit(CGRP_CLONE_CHILDREN, &cgroup->flags)) { + printk("ns_cgroup can't be created with parent " + "'clone_children' set.\n"); + return ERR_PTR(-EINVAL); + } + + printk_once("ns_cgroup deprecated: consider using the " + "'clone_children' flag without the ns_cgroup.\n"); ns_cgroup = kzalloc(sizeof(*ns_cgroup), GFP_KERNEL); if (!ns_cgroup) _ Patches currently in -mm which might be from daniel.lezcano@xxxxxxx are linux-next.patch cgroup-add-clone_children-control-file.patch cgroup-make-the-mount-options-parsing-more-accurate.patch cgroup-notify-ns_cgroup-deprecated.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html