lkml.org 
[lkml]   [2015]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v4 2/2] cgroups: add a pids subsystem
    On Sun, Mar 08, 2015 at 11:34:05PM -0400, Tejun Heo wrote:
    > > + for (p = pids; p; p = p->parent) {
    > > + long new;
    > > +
    > > + new = atomic_long_add_return(num, &p->counter);
    > > +
    > > + if (p->limit == PIDS_UNLIMITED)
    > > + continue;
    >
    > Huh? So, the counter stays out of sync if unlimited? What happens
    > when it gets set to something else later?

    Oops, I misread the code, but why is PIDS_UNLIMITED a special case?
    Just make it a number which always makes the condition true?

    Thanks.

    --
    tejun


    \
     
     \ /
      Last update: 2015-03-09 05:01    [W:3.170 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site