From: Vladimir Davydov Date: Sat, 13 Dec 2014 00:54:50 +0000 (-0800) Subject: memcg: __mem_cgroup_free: remove stale disarm_static_keys comment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bfda7e8fe428ff4a42653d7b117d4598fc446cda;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git memcg: __mem_cgroup_free: remove stale disarm_static_keys comment cpuset code stopped using cgroup_lock in favor of cpuset_mutex long ago. Signed-off-by: Vladimir Davydov Cc: Johannes Weiner Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 85df503ec023..e8bf0fc356b2 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4724,17 +4724,6 @@ static void __mem_cgroup_free(struct mem_cgroup *memcg) free_percpu(memcg->stat); - /* - * We need to make sure that (at least for now), the jump label - * destruction code runs outside of the cgroup lock. This is because - * get_online_cpus(), which is called from the static_branch update, - * can't be called inside the cgroup_lock. cpusets are the ones - * enforcing this dependency, so if they ever change, we might as well. - * - * schedule_work() will guarantee this happens. Be careful if you need - * to move this code around, and make sure it is outside - * the cgroup_lock. - */ disarm_static_keys(memcg); kfree(memcg); }