[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110203054826.GU16432@count0.beaverton.ibm.com>
Date: Wed, 2 Feb 2011 21:48:26 -0800
From: Matt Helsley <matthltc@...ibm.com>
To: Paul Menage <menage@...gle.com>
Cc: "Kirill A. Shutsemov" <kirill@...temov.name>,
Li Zefan <lizf@...fujitsu.com>,
containers@...ts.linux-foundation.org,
jacob.jun.pan@...ux.intel.com,
Arjan van de Ven <arjan@...ux.intel.com>,
linux-kernel@...r.kernel.org, Matt Helsley <matthltc@...ibm.com>
Subject: Re: [PATCH, v3 2/2] cgroups: introduce timer slack subsystem
On Wed, Feb 02, 2011 at 03:23:15PM -0800, Paul Menage wrote:
> On Wed, Feb 2, 2011 at 12:47 PM, Kirill A. Shutsemov
<kirill@...temov.name> wrote:
> > +static int tslack_write_range(struct cgroup *cgroup, struct cftype *cft,
> > + u64 val)
> > +{
> > + struct timer_slack_cgroup *tslack_cgroup;
> > + struct cgroup_iter it;
> > + struct task_struct *task;
> > +
> > + if (!val)
> > + return -EINVAL;
> > +
> > + tslack_cgroup = cgroup_to_tslack_cgroup(cgroup);
> > + switch (cft->private) {
> > + case TIMER_SLACK_MIN:
> > + if (val > tslack_cgroup->max_slack_ns)
> > + return -EINVAL;
> > + tslack_cgroup->min_slack_ns = val;
> > + break;
> > + case TIMER_SLACK_MAX:
> > + if (val < tslack_cgroup->min_slack_ns)
> > + return -EINVAL;
> > + tslack_cgroup->max_slack_ns = val;
> > + break;
> > + default:
> > + BUG();
> > + }
> > +
>
> Don't we want to keep the min/max applied hierarchically as well? i.e.
> a child can't set its min/max outside the range of its parents?
That was my expectation as well.
Cheers,
-Matt Helsley
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists