[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181120164859.GY2509588@devbig004.ftw2.facebook.com>
Date: Tue, 20 Nov 2018 08:48:59 -0800
From: Tejun Heo <tj@...nel.org>
To: Roman Gushchin <guro@...com>
Cc: Roman Gushchin <guroan@...il.com>, Oleg Nesterov <oleg@...hat.com>,
"cgroups@...r.kernel.org" <cgroups@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Kernel Team <Kernel-team@...com>
Subject: Re: [PATCH v3 4/7] cgroup: cgroup v2 freezer
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
Powered by blists - more mailing lists