Re: [PATCH 13/16] cgroup_freezer: prepare for removal of TIF_FREEZE

From: Tejun Heo
Date: Mon Aug 29 2011 - 02:31:28 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/