• Tycho Andersen's avatar
    cgroup: don't fail on multi-headed freezer cgroup · b428a3a2
    Tycho Andersen authored
    Consider the case where --freeze-cgroup=/lxc/foo, but (e.g. with systemd in
    lxc), all of the tasks actually live in a set of sub cgroups, e.g.
    /lxc/foo/init.scope and others. In this case, we will have a multi-headed
    controller, since there is nothing in the common parent. We should just
    save the freezer value in all of these heads instead of failing.
    
    Note that this doesn't address the larger problem that only the top level
    freezer.state file is c/r'd, or waht happens when the container itself has
    frozen tasks but not at the top level. After some discussion, there is no
    nice way to atomically test-and-set the cgroup freezer, so we'll need some
    other kernel help. But I'll ignore this for now :)
    Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    b428a3a2
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
lib Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Makefile Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...