]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgfsng: handle v1 cpuset hierarchy first 2670/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 3 Oct 2018 10:23:36 +0000 (12:23 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 3 Oct 2018 10:29:20 +0000 (12:29 +0200)
commitef1853605066aa15630424340f2d7777964ed5d9
tree8451727562bf8f9b87b20d46cae94ac10bfc3051
parent6099dd5a1384d821e8d5b3467f0f1acab9bfb190
cgfsng: handle v1 cpuset hierarchy first

If the value of cgroup.clone_children in our immediate ancestor cgroup
is 0 then the cpuset of any cgroups we create in subtrees will be empty
and hence we'll copy an empty cpuset at which point we cannot enter the
cpuset cgroup.
Avoid this problem by initializing cgroup.clone_children to 1 an copying
the initialized cpuset of our immediate ancestor. Note, that the cpuset
of our immediate ancestor must be initialized and ours as well otherwise
we couldn't be located in this cgroup.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c