mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
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>
This commit is contained in:
parent
918a8c2c4e
commit
c705a00d77
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user