[PATCH v6 0/3] cgroups: implement moving a threadgroup's threads atomically with cgroup.procs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ben Blum
Date: Friday, December 24, 2010 - 1:22 am

On Wed, Aug 11, 2010 at 01:46:04AM -0400, Ben Blum wrote:

One more go at this. I've refreshed the patches for some conflicts in
cgroup_freezer.c, by adding an extra argument to the per_thread() call,
"need_rcu", which makes the function take rcu_read_lock even around the
single-task case (like freezer now requires). So no semantics have been
changed.

I also poked around at some attach() calls which also iterate over the
threadgroup (blkiocg_attach, cpuset_attach, cpu_cgroup_attach). I was
borderline about making another function, cgroup_attach_per_thread(),
but decided against.

There is a big issue in cpuset_attach, as explained in this email:
http://www.spinics.net/lists/linux-containers/msg22223.html
but the actual code/diffs for this patchset are independent of that
getting fixed, so I'm putting this up for consideration now.

-- Ben

---
 Documentation/cgroups/cgroups.txt |   13 -
 block/blk-cgroup.c                |   31 ++
 include/linux/cgroup.h            |   14 +
 include/linux/init_task.h         |    9 
 include/linux/sched.h             |   35 ++
 kernel/cgroup.c                   |  469 ++++++++++++++++++++++++++++++++++----
 kernel/cgroup_freezer.c           |   33 +-
 kernel/cpuset.c                   |   30 --
 kernel/fork.c                     |   10 
 kernel/ns_cgroup.c                |   25 --
 kernel/sched.c                    |   24 -
 11 files changed, 565 insertions(+), 128 deletions(-)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v4 2/2] cgroups: make procs file writable, Ben Blum, (Fri Jul 30, 4:59 pm)
Re: [PATCH v4 2/2] cgroups: make procs file writable, KAMEZAWA Hiroyuki, (Tue Aug 3, 6:08 pm)
Re: [PATCH v4 2/2] cgroups: make procs file writable, Paul Menage, (Tue Aug 3, 9:30 pm)
Re: [PATCH v4 2/2] cgroups: make procs file writable, Paul Menage, (Tue Aug 3, 9:46 pm)
Re: [PATCH v4 1/2] cgroups: read-write lock CLONE_THREAD f ..., KAMEZAWA Hiroyuki, (Fri Aug 6, 12:08 am)
[PATCH v5 3/3] cgroups: make procs file writable, Ben Blum, (Tue Aug 10, 10:48 pm)
Re: [PATCH v5 3/3] cgroups: make procs file writable, Paul Menage, (Tue Aug 24, 11:08 am)
[PATCH v6 0/3] cgroups: implement moving a threadgroup's t ..., Ben Blum, (Fri Dec 24, 1:22 am)
[PATCH v6 3/3] cgroups: make procs file writable, Ben Blum, (Fri Dec 24, 1:24 am)
[PATCH v7 3/3] cgroups: make procs file writable, Ben Blum, (Sun Dec 26, 5:12 am)