[PATCH] cgroup: avoid creating degenerate allcg_list

2012-11-28 Thread Greg Thelen
Before this patch init_cgroup_root() created a degenerate list by first inserting a element into allcg_list and then initializing the inserted list element. The initialization reset the element's prev/next fields forming a degenerate list where allcg_list pointed to element, but element pointed to

Re: [PATCH] cgroup: avoid creating degenerate allcg_list

2012-11-28 Thread Tejun Heo
Hey, Greg. On Wed, Nov 28, 2012 at 10:26:32AM -0800, Greg Thelen wrote: > Before this patch init_cgroup_root() created a degenerate list by > first inserting a element into allcg_list and then initializing the > inserted list element. The initialization reset the element's > prev/next fields form