]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
cgroup: add comment to cgroup_enable_threaded()
authorTejun Heo <tj@kernel.org>
Tue, 25 Jul 2017 17:20:18 +0000 (13:20 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 25 Jul 2017 17:20:18 +0000 (13:20 -0400)
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>
kernel/cgroup/cgroup.c

index e0a558c4d3580dbbbec9b77e505258910e8da025..85f6a112344b2d837616531f6607ebf17264f65e 100644 (file)
@@ -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);