From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kamezawa Hiroyuki Subject: Re: [RFC][PATCH 1/7] memcg: use css_get in sock_update_memcg() Date: Fri, 05 Apr 2013 14:01:31 +0900 Message-ID: <515E5AAB.2080503@jp.fujitsu.com> References: <515BF233.6070308@huawei.com> <515BF249.50607@huawei.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <515BF249.50607-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Li Zefan Cc: linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, LKML , Cgroups , Tejun Heo , Glauber Costa , Michal Hocko , Johannes Weiner (2013/04/03 18:11), Li Zefan wrote: > Use css_get/css_put instead of mem_cgroup_get/put. > > Note, if at the same time someone is moving @current to a different > cgroup and removing the old cgroup, css_tryget() may return false, > and sock->sk_cgrp won't be initialized. > > Signed-off-by: Li Zefan Thank you. Acked-by: KAMEZAWA Hiroyuki