aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/feature-removal-schedule.txt17
-rw-r--r--kernel/ns_cgroup.c8
2 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index d2af87ba96e1..f3da8c0a3af2 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -526,6 +526,23 @@ Who: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
526 526
527---------------------------- 527----------------------------
528 528
529What: namespace cgroup (ns_cgroup)
530When: 2.6.38
531Why: The ns_cgroup leads to some problems:
532 * cgroup creation is out-of-control
533 * cgroup name can conflict when pids are looping
534 * it is not possible to have a single process handling
535 a lot of namespaces without falling in a exponential creation time
536 * we may want to create a namespace without creating a cgroup
537
538 The ns_cgroup is replaced by a compatibility flag 'clone_children',
539 where a newly created cgroup will copy the parent cgroup values.
540 The userspace has to manually create a cgroup and add a task to
541 the 'tasks' file.
542Who: Daniel Lezcano <daniel.lezcano@free.fr>
543
544----------------------------
545
529What: iwlwifi disable_hw_scan module parameters 546What: iwlwifi disable_hw_scan module parameters
530When: 2.6.40 547When: 2.6.40
531Why: Hareware scan is the prefer method for iwlwifi devices for 548Why: Hareware scan is the prefer method for iwlwifi devices for
diff --git a/kernel/ns_cgroup.c b/kernel/ns_cgroup.c
index 2a5dfec8efe0..2c98ad94ba0e 100644
--- a/kernel/ns_cgroup.c
+++ b/kernel/ns_cgroup.c
@@ -85,6 +85,14 @@ static struct cgroup_subsys_state *ns_create(struct cgroup_subsys *ss,
85 return ERR_PTR(-EPERM); 85 return ERR_PTR(-EPERM);
86 if (!cgroup_is_descendant(cgroup, current)) 86 if (!cgroup_is_descendant(cgroup, current))
87 return ERR_PTR(-EPERM); 87 return ERR_PTR(-EPERM);
88 if (test_bit(CGRP_CLONE_CHILDREN, &cgroup->flags)) {
89 printk("ns_cgroup can't be created with parent "
90 "'clone_children' set.\n");
91 return ERR_PTR(-EINVAL);
92 }
93
94 printk_once("ns_cgroup deprecated: consider using the "
95 "'clone_children' flag without the ns_cgroup.\n");
88 96
89 ns_cgroup = kzalloc(sizeof(*ns_cgroup), GFP_KERNEL); 97 ns_cgroup = kzalloc(sizeof(*ns_cgroup), GFP_KERNEL);
90 if (!ns_cgroup) 98 if (!ns_cgroup)