[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121108044521.GH2660@mtj.dyndns.org>
Date: Wed, 7 Nov 2012 20:45:21 -0800
From: Tejun Heo <tj@...nel.org>
To: Kamezawa Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Cc: lizefan@...wei.com, mhocko@...e.cz, rjw@...k.pl,
linux-pm@...r.kernel.org, fweisbec@...il.com,
containers@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, cgroups@...r.kernel.org
Subject: Re: [PATCH 7/9] cgroup_freezer: introduce
CGROUP_FREEZING_[SELF|PARENT]
Hello,
On Thu, Nov 08, 2012 at 01:42:22PM +0900, Kamezawa Hiroyuki wrote:
> (2012/11/03 17:38), Tejun Heo wrote:
> >Introduce FREEZING_SELF and FREEZING_PARENT and make FREEZING OR of
> >the two flags. This is to prepare for full hierarchy support.
> >
> >freezer_apply_date() is updated such that it can handle setting and
> >clearing of both flags. The two flags are also exposed to userland
> >via read-only files self_freezing and parent_freezing.
> >
> >Other than the added cgroupfs files, this patch doesn't introduce any
> >behavior change.
> >
> >Signed-off-by: Tejun Heo <tj@...nel.org>
>
> What is the purpose of FREEZING_SELG/PARENT, having 2 flags and
> make it visible to users ?
SELF is the configuration of the current cgroup, PARENT is freezing
state inherited from an ancestor. If either is set, the cgroup is
freezing. Without the two conditions visible to userland, it can get
a bit confusing as echoing "THAWED" to state may not do anything to
the cgroup.
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