[Devel] [RFC] [PATCH 1/2] cgroups: read-write lock CLONE_THREAD forking per threadgroup

2010-05-29 Thread Ben Blum
Adds functionality to read/write lock CLONE_THREAD fork()ing per-threadgroup From: Ben Blum bb...@andrew.cmu.edu This patch adds an rwsem that lives in a threadgroup's signal_struct that's taken for reading in the fork path, under CONFIG_CGROUPS. If another part of the kernel later wants to use

[Devel] [RFC] [PATCH 1/2] cgroups: read-write lock CLONE_THREAD forking per threadgroup

2010-01-03 Thread Ben Blum
Adds functionality to read/write lock CLONE_THREAD fork()ing per-threadgroup From: Ben Blum bb...@andrew.cmu.edu This patch adds an rwsem that lives in a threadgroup's sighand_struct (next to the sighand's atomic count, to piggyback on its cacheline), and two functions in kernel/cgroup.c (for