[lkml]   [2010]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v5 3/3] cgroups: make procs file writable
On Tue, Aug 10, 2010 at 10:48 PM, Ben Blum <> wrote:
> Makes procs file writable to move all threads by tgid at once
> From: Ben Blum <>
> This patch adds functionality that enables users to move all threads in a
> threadgroup at once to a cgroup by writing the tgid to the 'cgroup.procs'
> file. This current implementation makes use of a per-threadgroup rwsem that's
> taken for reading in the fork() path to prevent newly forking threads within
> the threadgroup from "escaping" while the move is in progress.
> Signed-off-by: Ben Blum <>

Reviewed-by: Paul Menage <>

 \ /
  Last update: 2010-08-24 20:11    [W:0.197 / U:0.820 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site