summaryrefslogtreecommitdiff
path: root/kernel/cgroup/cgroup.c
diff options
context:
space:
mode:
authorRoman Gushchin <guro@fb.com>2018-01-10 15:35:12 +0300
committerTejun Heo <tj@kernel.org>2018-01-10 20:42:32 +0300
commit4f58424da3deead2605e39a9df65f5f06107a3cb (patch)
tree2745d33d3dc0735dfae23d45f6744d5b48394bb9 /kernel/cgroup/cgroup.c
parent74d0833c659a8a54735e5efdd44f4b225af68586 (diff)
downloadlinux-4f58424da3deead2605e39a9df65f5f06107a3cb.tar.xz
cgroup: make cgroup.threads delegatable
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>
Diffstat (limited to 'kernel/cgroup/cgroup.c')
-rw-r--r--kernel/cgroup/cgroup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 2cf06c274e4c..7e4c44538119 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -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,