/* If this becomes a problem for some users who wish to allow that scenario, then cpuset_post_clone() could be changed to grant parent->cpus_allowed-sibling_cpus_exclusive (and likewise for mems) to the new cgroup. Called with cgroup_mutex held.  */
static void cpuset_post_clone(struct cgroup_subsys *ss, struct cgroup *cgroup)
/* If this becomes a problem for some users who wish to allow that scenario, then cpuset_post_clone() could be changed to grant parent->cpus_allowed-sibling_cpus_exclusive (and likewise for mems) to the new cgroup. Called with cgroup_mutex held.  */
static void cpuset_post_clone(struct cgroup_subsys *ss, struct cgroup *cgroup)
{
	struct cgroup *parent, *child;
	struct cpuset *cs, *parent_cs;
	parent = cgroup->parent;
	list_for_each_entry(child, &parent->children, sibling) {
		cs = cgroup_cs(child);
		if (is_mem_exclusive(cs) || is_cpu_exclusive(cs))
			return;
	}
	cs = cgroup_cs(cgroup);
	parent_cs = cgroup_cs(parent);
	cs->mems_allowed = parent_cs->mems_allowed;
	cpumask_copy(cs->cpus_allowed, parent_cs->cpus_allowed);
	return;
}