Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752590Ab1CJOqK (ORCPT ); Thu, 10 Mar 2011 09:46:10 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:47267 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752324Ab1CJOqH (ORCPT ); Thu, 10 Mar 2011 09:46:07 -0500 Message-ID: <4D78E3EB.8080207@librato.com> Date: Thu, 10 Mar 2011 09:44:59 -0500 From: Mike Heffner User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100908 Remi/fc12 Lightning/1.0b2 Thunderbird/3.1.3 MIME-Version: 1.0 To: Paul Menage CC: Eric B Munson , linux-kernel@vger.kernel.org, containers@lists.linux-foundation.org, rdunlap@xenotime.net, linux-doc@vger.kernel.org Subject: Re: [PATCH] Documentation: cgroups: Add notes on removing PIDs from tasks and cgroups requiring setup References: <1299704969-4485-1-git-send-email-emunson@mgebm.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1006 Lines: 28 On 03/09/2011 06:13 PM, Paul Menage wrote: > On Wed, Mar 9, 2011 at 1:09 PM, Eric B Munson wrote: >> >> +Note: To remove a task from a cgroup you must write its PID to the root >> +tasks file. >> + > > This isn't really accurate - the root cgroup is a cgroup like all the > others. More accurate would be something like: > > Since every task is always a member of exactly one cgroup in each > mounted hierarchy, to remove a task from its current cgroup you must > move it into a new cgroup (possibly the root cgroup) by writing to the > new cgroup's tasks file. If we are updating this documentation, can we include a blurb that mentions if the 'ns' cgroup is mounted in the hierarchy, moving a process to a new cgroup can fail? Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/