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    [W:0.018 / U:32.300 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site