diff options
author | Roman Gushchin <guro@fb.com> | 2018-01-10 04:35:12 -0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-01-10 09:42:32 -0800 |
commit | 4f58424da3deead2605e39a9df65f5f06107a3cb (patch) | |
tree | 2745d33d3dc0735dfae23d45f6744d5b48394bb9 | |
parent | 74d0833c659a8a54735e5efdd44f4b225af68586 (diff) | |
download | op-kernel-dev-4f58424da3deead2605e39a9df65f5f06107a3cb.zip op-kernel-dev-4f58424da3deead2605e39a9df65f5f06107a3cb.tar.gz |
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>
-rw-r--r-- | kernel/cgroup/cgroup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 2cf06c2..7e4c445 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, |