[PATCH 2/2] cgroup: remove extra calls to find_existing_css_set

Mandeep Singh Baines msb at chromium.org
Fri Dec 23 00:29:44 UTC 2011


Tejun Heo (tj at kernel.org) wrote:
> On Thu, Dec 22, 2011 at 02:26:56PM -0800, Mandeep Singh Baines wrote:
> > +out_list_teardown:
> > +	if (retval) {
> > +		for (i = 0; i < group_size; i++) {
> > +			tc = flex_array_get(group, i);
> > +			put_css_set(tc->cg);
> > +		}
> > +	}
> 
> Don't we need to put them even after success?
> 

On success, we need to keep a reference for each thread in the threadgroup.

> -- 
> tejun


More information about the Containers mailing list