[Devel] Re: [RFC][PATCH 2/3] CGroups: Use hierarchy_mutex in memory controller

KAMEZAWA Hiroyuki kamezawa.hiroyu at jp.fujitsu.com
Thu Dec 11 17:12:57 PST 2008


On Thu, 11 Dec 2008 09:05:47 -0800
Paul Menage <menage at google.com> wrote:

> On Wed, Dec 10, 2008 at 10:53 PM, KAMEZAWA Hiroyuki
> <kamezawa.hiroyu at jp.fujitsu.com> wrote:
> >
> > Could you write a document to explain what kind of nest of locks are allowed
> > before merging this ?
> 
> We should probably treat it similarly to the cpuset "callback_mutex".
> I.e. memory allocations are most likely forbidden when you're holding
> it.
> 
Hmm. Anyway, hierarchy mutex should not be aquired in deep stack of the kernel
calls. (and my patch will make memcg's hierarchy walk lockless.)

-Kame

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list