summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorRoman Gushchin <guro@fb.com>2018-01-10 04:35:12 -0800
committerTejun Heo <tj@kernel.org>2018-01-10 09:42:32 -0800
commit4f58424da3deead2605e39a9df65f5f06107a3cb (patch)
tree2745d33d3dc0735dfae23d45f6744d5b48394bb9 /kernel
parent74d0833c659a8a54735e5efdd44f4b225af68586 (diff)
downloadlwn-4f58424da3deead2605e39a9df65f5f06107a3cb.tar.gz
lwn-4f58424da3deead2605e39a9df65f5f06107a3cb.zip
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')
-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,