cgroups: don't move pivot cgroup under the monitor's cgroup

Otherwise we will never be able to destroy the monitor's cgroup. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 14637407
...@@ -1247,9 +1247,7 @@ __cgfsng_ops static void cgfsng_monitor_destroy(struct cgroup_ops *ops, ...@@ -1247,9 +1247,7 @@ __cgfsng_ops static void cgfsng_monitor_destroy(struct cgroup_ops *ops,
goto cgroup_prune_tree; goto cgroup_prune_tree;
} }
if (conf->cgroup_meta.monitor_dir) if (conf->cgroup_meta.dir)
pivot_path = must_make_path(conf->cgroup_meta.monitor_dir, CGROUP_PIVOT, NULL);
else if (conf->cgroup_meta.dir)
pivot_path = must_make_path(conf->cgroup_meta.dir, CGROUP_PIVOT, NULL); pivot_path = must_make_path(conf->cgroup_meta.dir, CGROUP_PIVOT, NULL);
else else
pivot_path = must_make_path(CGROUP_PIVOT, NULL); pivot_path = must_make_path(CGROUP_PIVOT, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment