cgroup: remove bogus comments
We never grab cgroup mutex in fork and exit paths no matter whether notify_on_release is set or not. Signed-off-by: Zefan Li <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
244bb9a633
commit
0c8fc2c121
1 changed files with 0 additions and 8 deletions
|
@ -967,14 +967,6 @@ static struct cgroup *task_cgroup_from_root(struct task_struct *task,
|
||||||
* knows that the cgroup won't be removed, as cgroup_rmdir()
|
* knows that the cgroup won't be removed, as cgroup_rmdir()
|
||||||
* needs that mutex.
|
* needs that mutex.
|
||||||
*
|
*
|
||||||
* The fork and exit callbacks cgroup_fork() and cgroup_exit(), don't
|
|
||||||
* (usually) take cgroup_mutex. These are the two most performance
|
|
||||||
* critical pieces of code here. The exception occurs on cgroup_exit(),
|
|
||||||
* when a task in a notify_on_release cgroup exits. Then cgroup_mutex
|
|
||||||
* is taken, and if the cgroup count is zero, a usermode call made
|
|
||||||
* to the release agent with the name of the cgroup (path relative to
|
|
||||||
* the root of cgroup file system) as the argument.
|
|
||||||
*
|
|
||||||
* A cgroup can only be deleted if both its 'count' of using tasks
|
* A cgroup can only be deleted if both its 'count' of using tasks
|
||||||
* is zero, and its list of 'children' cgroups is empty. Since all
|
* is zero, and its list of 'children' cgroups is empty. Since all
|
||||||
* tasks in the system use _some_ cgroup, and since there is always at
|
* tasks in the system use _some_ cgroup, and since there is always at
|
||||||
|
|
Loading…
Reference in a new issue