diff options
author | Li Zefan <lizefan@huawei.com> | 2014-09-17 06:19:24 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-09-17 17:34:16 -0400 |
commit | 0c8fc2c1210556434835adfb2274f41704853e8a (patch) | |
tree | 72f83f1640aa63246c99e71b1cad4b6338ab97da /kernel/cgroup.c | |
parent | 244bb9a6336d2aa53526261ec35c593ebd5c1a33 (diff) |
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>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index d739a732edb9..4ddc75588983 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -967,14 +967,6 @@ static struct cgroup *task_cgroup_from_root(struct task_struct *task, | |||
967 | * knows that the cgroup won't be removed, as cgroup_rmdir() | 967 | * knows that the cgroup won't be removed, as cgroup_rmdir() |
968 | * needs that mutex. | 968 | * needs that mutex. |
969 | * | 969 | * |
970 | * The fork and exit callbacks cgroup_fork() and cgroup_exit(), don't | ||
971 | * (usually) take cgroup_mutex. These are the two most performance | ||
972 | * critical pieces of code here. The exception occurs on cgroup_exit(), | ||
973 | * when a task in a notify_on_release cgroup exits. Then cgroup_mutex | ||
974 | * is taken, and if the cgroup count is zero, a usermode call made | ||
975 | * to the release agent with the name of the cgroup (path relative to | ||
976 | * the root of cgroup file system) as the argument. | ||
977 | * | ||
978 | * A cgroup can only be deleted if both its 'count' of using tasks | 970 | * A cgroup can only be deleted if both its 'count' of using tasks |
979 | * is zero, and its list of 'children' cgroups is empty. Since all | 971 | * is zero, and its list of 'children' cgroups is empty. Since all |
980 | * tasks in the system use _some_ cgroup, and since there is always at | 972 | * tasks in the system use _some_ cgroup, and since there is always at |