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

From: Mandeep Singh Baines
Date: Thu Dec 22 2011 - 19:30:13 EST


Tejun Heo (tj@xxxxxxxxxx) 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/