[Devel] Re: [PATCH 3/7] cgroups: Allow to unbind subsystem from a cgroup hierarachy
Paul Menage
menage at google.com
Thu Oct 28 17:02:27 PDT 2010
On Fri, Oct 22, 2010 at 1:10 AM, Li Zefan <lizf at cn.fujitsu.com> wrote:
> - for_each_set_bit(i, &added_bits, CGROUP_SUBSYS_COUNT)
> - cg->subsys[i] = cgrp->subsys[i];
> + for_each_set_bit(i, &bits, CGROUP_SUBSYS_COUNT) {
> + if (add)
> + cg->subsys[i] = cgrp->subsys[i];
> + else
> + cg->subsys[i] = dummytop->subsys[i];
> + }
Should these technically be rcu_assign_pointer() ?
Paul
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list