diff options
author | Tejun Heo <tj@kernel.org> | 2017-07-25 13:20:18 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-07-25 13:20:18 -0400 |
commit | c705a00d77457b44ba3790fdf0627ecb8593a254 (patch) | |
tree | 3af32050b385064ec79eb995841c6a596fcc725b /kernel/cgroup | |
parent | 918a8c2c4ea4fab8b7855b8da48bbaf0a733ebb0 (diff) | |
download | linux-c705a00d77457b44ba3790fdf0627ecb8593a254.tar.bz2 |
cgroup: add comment to cgroup_enable_threaded()
Explain cgroup_enable_threaded() and note that the function can never
be called on the root cgroup.
Signed-off-by: Tejun Heo <tj@kernel.org>
Suggested-by: Waiman Long <longman@redhat.com>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r-- | kernel/cgroup/cgroup.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index e0a558c4d358..85f6a112344b 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -3129,6 +3129,15 @@ out_unlock: return ret ?: nbytes; } +/** + * cgroup_enable_threaded - make @cgrp threaded + * @cgrp: the target cgroup + * + * Called when "threaded" is written to the cgroup.type interface file and + * tries to make @cgrp threaded and join the parent's resource domain. + * This function is never called on the root cgroup as cgroup.type doesn't + * exist on it. + */ static int cgroup_enable_threaded(struct cgroup *cgrp) { struct cgroup *parent = cgroup_parent(cgrp); |