Re: [PATCH 5/7] cgroups: Make freezer subsystem bindable

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Li Zefan
Date: Sunday, October 24, 2010 - 6:15 pm

Matt Helsley wrote:

How about, we allow unbinding only when all the cgroups' state is
THAWED ?


We can use bindable:1 along with a callback can_bind().

For some subsystems, we just set bindable to true. For freezer subsystem,
we set it to true and provide freezer_can_bind(), and return true only
if no cgroup's state is FROZEN.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/7] cgroups: Shrink struct cgroup_subsys, Li Zefan, (Fri Oct 22, 1:09 am)
Re: [PATCH 7/7] cgroups: Update documentation for bindable ..., KAMEZAWA Hiroyuki, (Sun Oct 24, 5:36 pm)
Re: [PATCH 5/7] cgroups: Make freezer subsystem bindable, Li Zefan, (Sun Oct 24, 6:15 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys, Paul Menage, (Thu Oct 28, 4:34 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys, Paul Menage, (Tue Nov 9, 2:05 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys, Paul Menage, (Tue Nov 9, 6:53 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys, Paul Menage, (Tue Nov 9, 7:15 pm)