Re: [PATCH] cgroup: explicitly init the early_init field

2014-04-21 Thread Jianyu Zhan
On Tue, Apr 22, 2014 at 2:22 PM, Li Zefan wrote: > If you think this is the right thing to do, you can apply the same reason > to the initialization of other structures in the whole kernel tree. > >> Signed-off-by: Jianyu Zhan > > nack Hi, Li, Sorry for the noise. For cpuset subsystem, this fi

Re: [PATCH] cgroup: explicitly init the early_init field

2014-04-21 Thread Li Zefan
On 2014/4/22 13:27, Jianyu Zhan wrote: > For a cgroup subsystem who should init early, then it should carefully > take care of the implementation of css_alloc, because it will be called > before mm_init() setup the world. > > Luckily we don't, and we better explicitly assign the early_init field >

[PATCH] cgroup: explicitly init the early_init field

2014-04-21 Thread Jianyu Zhan
For a cgroup subsystem who should init early, then it should carefully take care of the implementation of css_alloc, because it will be called before mm_init() setup the world. Luckily we don't, and we better explicitly assign the early_init field to 0, for document reason. Signed-off-by: Jianyu