From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [PATCH 1/3][V2] cgroup : add clone_children control file Date: Mon, 27 Sep 2010 08:34:40 -0500 Message-ID: <20100927133440.GD4701@hallyn.com> References: <1285582453-6127-1-git-send-email-daniel.lezcano@free.fr> <1285582453-6127-2-git-send-email-daniel.lezcano@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1285582453-6127-2-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Daniel Lezcano Cc: "Serge E. Hallyn" , akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, Paul Menage , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, "Eric W. Biederman" List-Id: containers.vger.kernel.org Quoting Daniel Lezcano (daniel.lezcano-GANU6spQydw@public.gmane.org): > This patch is sent as an answer to a previous thread around the ns_cgroup. > > https://lists.linux-foundation.org/pipermail/containers/2009-June/018627.html > > It adds a control file 'clone_children' for a cgroup. > This control file is a boolean specifying if the child cgroup should > be a clone of the parent cgroup or not. The default value is 'false'. > > This flag makes the child cgroup to call the post_clone callback of all > the subsystem, if it is available. > > At present, the cpuset is the only one which had implemented the post_clone > callback. > > The option can be set at mount time by specifying the 'clone_children' mount > option. > > Signed-off-by: Daniel Lezcano > Signed-off-by: Serge E. Hallyn > Cc: Eric W. Biederman > Cc: Paul Menage Paul and Eric, do you have any objections to this set? Patch 2 in particular will make it easier to use both libvirt-lxc and lxc.sf.net containers at the same time, without having to reboot. > Reviewed-by: Li Zefan thanks, -serge