Re: [RFC][mm] [PATCH 4/4] Memory cgroup hierarchy feature selector(v2)

From: Balbir Singh
Date: Tue Nov 11 2008 - 00:01:35 EST


KAMEZAWA Hiroyuki wrote:
> On Sat, 08 Nov 2008 14:41:13 +0530
> Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> wrote:
>
>> Don't enable multiple hierarchy support by default. This patch introduces
>> a features element that can be set to enable the nested depth hierarchy
>> feature. This feature can only be enabled when the cgroup for which the
>> feature this is enabled, has no children.
>>
>> Signed-off-by: Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx>
>> ---
>>
> IMHO, permission to this is not enough.
>
> I think following is sane way.
> ==
> When parent->use_hierarchy==1.
> my->use_hierarchy must be "1" and cannot be tunrned to be "0" even if no children.
> When parent->use_hierarchy==0
> my->use_hierarchy can be either of "0" or "1".
> this value can be chagned if we don't have children
> ==

Sounds reasonable, will fix in v3.

--
Balbir
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/