Hello,

On Tue, Nov 20, 2018 at 04:43:52PM +0000, Roman Gushchin wrote:
> > But that wouldn't udpate the cgroup's frozen state and generate
> > notifications, right?
> 
> Why? The task will be eventually trapped into cgroup_enter_frozen(),
> and from there cgroup_update_frozen() will be called.

Because the cgroup is no longer frozen?

> You are right, that notification will not be issued, because the cgroup
> is not changing its state (frozen->frozen). I'm not sure that it makes
> sense to change the cgroup state back and forth in this case. Are there
> any reasons I'm missing?

Imagine the task being trapped in nfs or wherever and not getting into
the freezer for an extended period of time.  That'd make the frozen
state reporting observably and obviously wrong when seen from userland
which can lead to other issues.

But, above all, because the cgroup is not frozen - it may have active
running tasks in it at that point.

Thanks.

-- 
tejun

Reply via email to