[Devel] Re: [RFC][PATCH] IP address restricting cgroup subsystem

Paul Menage menage at google.com
Fri Jan 9 13:38:45 PST 2009


On Wed, Jan 7, 2009 at 1:33 AM, Li Zefan <lizf at cn.fujitsu.com> wrote:
>>
>> Yes, I like that. Will update the patch. I assume that I must check
>> list_empty(&cgroup->children)?
>
> Yes.
>
>> Should I use cgroup_lock()/cgroup_unlock()
>
> Yes.

For checking the "children" list, you can just lock
ipaddr_subsys.hierarchy_mutex.

Paul


More information about the Containers mailing list