Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936769Ab3DIC6M (ORCPT ); Mon, 8 Apr 2013 22:58:12 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:33538 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934602Ab3DIC6K (ORCPT ); Mon, 8 Apr 2013 22:58:10 -0400 X-SecurityPolicyCheck: OK by SHieldMailChecker v1.8.4 Message-ID: <516383AD.9010305@jp.fujitsu.com> Date: Tue, 09 Apr 2013 11:57:49 +0900 From: Kamezawa Hiroyuki User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Li Zefan CC: Andrew Morton , Tejun Heo , Glauber Costa , Johannes Weiner , LKML , Cgroups , linux-mm@kvack.org, Hugh Dickins Subject: Re: [PATCH 12/12] memcg: don't need to free memcg via RCU or workqueue References: <5162648B.9070802@huawei.com> <51626570.8000400@huawei.com> In-Reply-To: <51626570.8000400@huawei.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 795 Lines: 23 (2013/04/08 15:36), Li Zefan wrote: > Now memcg has the same life cycle with its corresponding cgroup, and > a cgroup is freed via RCU and then mem_cgroup_css_free() is called > in a work function, so we can simply call __mem_cgroup_free() in > mem_cgroup_css_free(). > > This actually reverts 59927fb984de1703c67bc640c3e522d8b5276c73 > ("memcg: free mem_cgroup by RCU to fix oops"). > > Cc: Hugh Dickins > Signed-off-by: Li Zefan Very nice. Acked-by: KAMEZAWA Hiroyuki -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/