diff options
author | Roman Gushchin <guro@fb.com> | 2018-01-10 13:35:12 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-01-10 18:42:32 +0100 |
commit | 4f58424da3deead2605e39a9df65f5f06107a3cb (patch) | |
tree | 2745d33d3dc0735dfae23d45f6744d5b48394bb9 /kernel/cgroup | |
parent | cgroup: fix css_task_iter crash on CSS_TASK_ITER_PROC (diff) | |
download | linux-4f58424da3deead2605e39a9df65f5f06107a3cb.tar.xz linux-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/cgroup')
-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 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, |