[Devel] [PATCH rh7] ve/cgroups: Allow to attach a single threaded task only into a container

Vladimir Davydov vdavydov at virtuozzo.com
Thu Oct 29 00:55:02 PDT 2015


On Wed, Oct 28, 2015 at 07:44:50PM +0300, Cyrill Gorcunov wrote:
> In commit e4abbcde75125568a855058f965ad3aa191fe52a we've
> allowed to attach non-self into container. Still there
> were an assumption that we might need multithreaded
> kernel threads to be connected into container (sounds
> like a new term in kernel development :-).
> 
> Thus lets simplify the test: we only require the
> "init" to be moved into a container. The rest of
> process tree is usually forked()/cloned() from it
> automatically obtaining same container's cgroup.
> 
> I leave an old test for kernel thread here because
> not sure if lack of it cause any problem. Lets
> step safe first.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at odin.com>
> CC: Nikita Spiridonov <nspiridonov at odin.com>
> CC: Vladimir Davydov <vdavydov at odin.com>
> CC: Konstantin Khorenko <khorenko at odin.com>
> CC: Pavel Emelyanov <xemul at odin.com>
> CC: Andrey Vagin <avagin at odin.com>

Reviewed-by: Vladimir Davydov <vdavydov at virtuozzo.com>



More information about the Devel mailing list