From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Zefan Subject: Re: [PATCH V2] cgroup: Introduce cgroup_detach_task(). Date: Tue, 26 Aug 2014 09:35:36 +0800 Message-ID: <53FBE468.6050805@huawei.com> References: <1408966330-2374-1-git-send-email-yangds.fnst@cn.fujitsu.com> <20140825141220.GA31066@mtj.dyndns.org> <20140825144710.GA21688@htj.dyndns.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Dongsheng Yang Cc: Tejun Heo , Dongsheng Yang , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 2014/8/25 23:00, Dongsheng Yang wrote: > On Mon, Aug 25, 2014 at 10:47 PM, Tejun Heo wrote: >> On Mon, Aug 25, 2014 at 10:46:03PM +0800, Dongsheng Yang wrote: >>> My point here is that attaching and detaching are a pair of operations. >> >> There is no detaching from a cgroup. A task is always attached to a >> cgroup whether that's a root or non-root cgroup. > > Okey, I should not think it as attaching and detaching. Just treat them as > a move between root and non-root cgroup. > > It sounds reasonable to me now. > I from time to time have to explain this to other people.