[lkml]   [2010]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/5] cgroup: do ID allocation under css allocator.
* KAMEZAWA Hiroyuki <> [2010-08-25 17:06:40]:

> From: KAMEZAWA Hiroyuki <>
> Now, css'id is allocated after ->create() is called. But to make use of ID
> in ->create(), it should be available before ->create().
> In another thinking, considering the ID is tightly coupled with "css",
> it should be allocated when "css" is allocated.
> This patch moves alloc_css_id() to css allocation routine. Now, only 2 subsys,
> memory and blkio are useing ID. (To support complicated hierarchy walk.)
^^^^ typo
> ID will be used in mem cgroup's ->create(), later.
> Note:
> If someone changes rules of css allocation, ID allocation should be moved too.

What rules? could you please elaborate?

Seems cleaner, may be we need to update cgroups.txt?

Three Cheers,

 \ /
  Last update: 2010-08-25 16:17    [W:0.075 / U:5.780 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site