Re: [PATCH 14/14] cgroup: implement css_tryget()

2014-05-11 Thread Tejun Heo
On Sun, May 11, 2014 at 12:54:59AM -0400, Johannes Weiner wrote: > > /** > > + * css_tryget - try to obtain a reference on the specified css > > + * @css: target css > > + * > > + * Obtain a reference on @css unless it already has reached zero and is > > + * being released. This function doesn't

Re: [PATCH 14/14] cgroup: implement css_tryget()

2014-05-10 Thread Johannes Weiner
On Fri, May 09, 2014 at 05:31:31PM -0400, Tejun Heo wrote: > Implement css_tryget() which tries to grab a cgroup_subsys_state's > reference as long as it already hasn't reached zero. Combined with > the recent css iterator changes to include offline && !released csses > during traversal, this can