[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110829063026.GA16431@mtj.dyndns.org>
Date: Mon, 29 Aug 2011 08:30:26 +0200
From: Tejun Heo <tj@...nel.org>
To: Oleg Nesterov <oleg@...hat.com>
Cc: rjw@...k.pl, paul@...lmenage.org, linux-kernel@...r.kernel.org,
arnd@...db.de, Li Zefan <lizf@...fujitsu.com>
Subject: Re: [PATCH 13/16] cgroup_freezer: prepare for removal of TIF_FREEZE
Hello,
On Sun, Aug 28, 2011 at 07:39:54PM +0200, Oleg Nesterov wrote:
> > @@ -321,6 +307,8 @@ static int freezer_change_state(struct cgroup *cgroup,
> > if (goal_state == freezer->state)
> > goto out;
> >
> > + freezer->state = goal_state;
> > +
>
> This doesn't look right at all... Unless I misssed something.
>
> A user writes "FROZEN" into the control file, our goal is CGROUP_FROZEN.
>
> But. freezer_change_state() should set CGROUP_FREEZING, not CGROUP_FROZEN.
> This cgrp is not frozen yet, _FROZEN should be set by update_if_frozen(),
> assuming that the user reads the state waiting until the operation
> completes.
Oops, right. That should have been CGROUP_FREEZING. Will fix.
Thanks.
--
tejun
--
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