From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: Re: [PATCH 05/17] cgroup: cgroup->dentry isn't a RCU pointer Date: Thu, 15 Nov 2012 07:00:11 +0400 Message-ID: <50A45ABB.3040507@parallels.com> References: <1352775704-9023-1-git-send-email-tj@kernel.org> <1352775704-9023-6-git-send-email-tj@kernel.org> <50A37B0A.7010608@parallels.com> <20121114185504.GG21185@mtj.dyndns.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20121114185504.GG21185-9pTldWuhBndy/B6EtB590w@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Tejun Heo Cc: lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, mhocko-AlSwsSmVLrQ@public.gmane.org On 11/14/2012 10:55 PM, Tejun Heo wrote: > Hello, Glauber. > > On Wed, Nov 14, 2012 at 03:05:46PM +0400, Glauber Costa wrote: >> Will memcontrol.c need similar amendments? >> >> The code that lives in -mm and includes kmemcg includes the following >> excerpt: >> >> rcu_read_lock(); >> dentry = rcu_dereference(memcg->css.cgroup->dentry); >> rcu_read_unlock(); > > Ooh, yeah, hmmm... that should happen after this series gets merged. > I'll mark it as pending. > > Thanks. > Btw: I did this because there is no other facility to figure out a memcg's "name". I wonder if there is anyone else using this, so we could just abstract that in cgroup.c?