lkml.org 
[lkml]   [2011]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] cgroup: remove extra calls to find_existing_css_set
Tejun Heo (tj@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


\
 
 \ /
  Last update: 2011-12-23 01:33    [from the cache]
©2003-2011 Jasper Spaans