Re: [PATCH v8.5 3/3] cgroups: make procs file writable

From: Andrew Morton
Date: Tue Mar 29 2011 - 19:40:24 EST


On Tue, 29 Mar 2011 16:27:19 -0700
Paul Menage <menage@xxxxxxxxxx> wrote:

> On Mon, Mar 21, 2011 at 10:18 PM, Ben Blum <bblum@xxxxxxxxxxxxxx> wrote:
> > Makes procs file writable to move all threads by tgid at once
> >
> > From: Ben Blum <bblum@xxxxxxxxxxxxxx>
> >
> > 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 <bblum@xxxxxxxxxxxxxx>
>
> Reviewed-by: Paul Menage <menage@xxxxxxxxxx>
>
> OK, I guess this is ready to go in :-)

It all needs a refresh, retest and resend please.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/