From: Li Zefan Date: Thu, 2 Apr 2009 23:57:31 +0000 (-0700) Subject: debug cgroup: remove unneeded cgroup_lock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d969fbe69e07fcceb0558b35d4c75eb046041c5e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git debug cgroup: remove unneeded cgroup_lock Since we are in cgroup write handler, so the cgrp is valid, so we don't have to hold cgroup_mutex when calling cgroup_task_count(). One similar example is in cgroup_tasks_open(). Signed-off-by: Li Zefan Acked-by: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/cgroup_debug.c b/kernel/cgroup_debug.c index daca6209202d..0c92d797baa6 100644 --- a/kernel/cgroup_debug.c +++ b/kernel/cgroup_debug.c @@ -40,9 +40,7 @@ static u64 taskcount_read(struct cgroup *cont, struct cftype *cft) { u64 count; - cgroup_lock(); count = cgroup_task_count(cont); - cgroup_unlock(); return count; }