]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
cgroup: make cgroup.threads delegatable
authorRoman Gushchin <guro@fb.com>
Wed, 10 Jan 2018 12:35:12 +0000 (04:35 -0800)
committerTejun Heo <tj@kernel.org>
Wed, 10 Jan 2018 17:42:32 +0000 (09:42 -0800)
Make cgroup.threads file delegatable.
The behavior of cgroup.threads should follow the behavior of cgroup.procs.

Signed-off-by: Roman Gushchin <guro@fb.com>
Discovered-by: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c

index 2cf06c274e4ca6cc66194f4ce0fcb9ad0ad82f88..7e4c4453811967e80250464bd91633e957549375 100644 (file)
@@ -4447,6 +4447,7 @@ static struct cftype cgroup_base_files[] = {
        },
        {
                .name = "cgroup.threads",
+               .flags = CFTYPE_NS_DELEGATABLE,
                .release = cgroup_procs_release,
                .seq_start = cgroup_threads_start,
                .seq_next = cgroup_procs_next,