On Tue, Aug 10, 2010 at 10:48 PM, Ben Blum <[email protected]> wrote:
>
> Add cgroup wrapper for safely calling can_attach on all threads in a 
> threadgroup
>
> From: Ben Blum <[email protected]>
>
> This patch adds a function cgroup_can_attach_per_thread which handles 
> iterating
> over each thread in a threadgroup safely with respect to the invariants that
> will be used in cgroup_attach_proc. Also, subsystems whose can_attach calls
> require per-thread validation are modified to use the per_thread wrapper to
> avoid duplicating cgroup-internal code.
>
> This is a pre-patch for cgroup-procs-writable.patch.
>
> Signed-off-by: Ben Blum <[email protected]>

Acked-by: Paul Menage <[email protected]>

Some of the can_attach() methods could be simplified slightly by
directly returning the result of cgroup_can_attach_per_thread()

Paul
_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to