Re: [PATCH 2/2] CFS CGroup: Report usage

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <vatsa@...>
Cc: Andrew Morton <akpm@...>, Ingo Molnar <mingo@...>, Srivatsa Vaddagiri <vatsa@...>, <containers@...>, <linux-kernel@...>
Date: Tuesday, October 23, 2007 - 2:06 am

On 10/22/07, Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> wrote:

I'm not sure, I was hoping you or Ingo could comment on this. But some
kind of locking seems to required at least on 32-bit platforms, since
sum_exec_runtime is a 64-bit number.


Good point - cgroups certainly prevents a cgroup itself from being
freed while a control file is being read in an RCU section, and
prevents a task group from being destroyed when that task group has
been read via a task's cgroups pointer and the reader is still in an
RCU section, but we need a generic protection for subsystem state
objects being accessed via control files too.

Using cgroup_mutex is certainly possible for now, although more
heavy-weight than I'd like long term. Using css_get isn't the right
approach, I think - we shouldn't be able to cause an rmdir to fail due
to a concurrent read.

Paul
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] CFS CGroup: Report usage, Paul Menage, (Mon Oct 22, 8:49 pm)
Re: [PATCH 2/2] CFS CGroup: Report usage, Srivatsa Vaddagiri, (Tue Oct 23, 12:47 pm)
Re: [PATCH 2/2] CFS CGroup: Report usage, Paul Menage, (Tue Oct 23, 12:41 pm)
Re: [PATCH 2/2] CFS CGroup: Report usage, Srivatsa Vaddagiri, (Tue Oct 23, 1:38 pm)
Re: [PATCH 2/2] CFS CGroup: Report usage, Paul Menage, (Tue Oct 23, 10:28 pm)
Re: [PATCH 2/2] CFS CGroup: Report usage, Srivatsa Vaddagiri, (Wed Oct 24, 12:39 am)
Re: [PATCH 2/2] CFS CGroup: Report usage, Paul Menage, (Thu Oct 25, 9:24 pm)
Re: [PATCH 2/2] CFS CGroup: Report usage, Srivatsa Vaddagiri, (Tue Oct 23, 12:43 pm)
Re: [PATCH 2/2] CFS CGroup: Report usage, Balbir Singh, (Mon Oct 22, 11:17 pm)
Re: [PATCH 2/2] CFS CGroup: Report usage, Paul Menage, (Tue Oct 23, 2:09 am)
Re: [PATCH 2/2] CFS CGroup: Report usage, Srivatsa Vaddagiri, (Mon Oct 22, 10:40 pm)
Re: [PATCH 2/2] CFS CGroup: Report usage, Paul Menage, (Tue Oct 23, 2:06 am)
Re: [PATCH 2/2] CFS CGroup: Report usage, Srivatsa Vaddagiri, (Tue Oct 23, 12:41 pm)
Re: [PATCH 2/2] CFS CGroup: Report usage, Paul Menage, (Tue Oct 23, 3:21 am)
Re: [PATCH 2/2] CFS CGroup: Report usage, Balbir Singh, (Tue Oct 23, 3:49 am)
Re: [PATCH 2/2] CFS CGroup: Report usage, Paul Menage, (Tue Oct 23, 3:53 am)
Re: [PATCH 2/2] CFS CGroup: Report usage, Balbir Singh, (Tue Oct 23, 3:57 am)
Re: [PATCH 2/2] CFS CGroup: Report usage, Paul Menage, (Tue Oct 23, 4:08 am)