All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Zefan <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
To: Dongsheng Yang <dongsheng081251-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Dongsheng Yang
	<yangds.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>,
	cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH V2] cgroup: Introduce cgroup_detach_task().
Date: Tue, 26 Aug 2014 09:35:36 +0800	[thread overview]
Message-ID: <53FBE468.6050805@huawei.com> (raw)
In-Reply-To: <CA+qeAOpiW41i3dKyxYp_G9kB=Z9Kr7ZXeJOyq8QZP=qy6H6T3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 2014/8/25 23:00, Dongsheng Yang wrote:
> On Mon, Aug 25, 2014 at 10:47 PM, Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 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.

WARNING: multiple messages have this Message-ID (diff)
From: Li Zefan <lizefan@huawei.com>
To: Dongsheng Yang <dongsheng081251@gmail.com>
Cc: Tejun Heo <tj@kernel.org>,
	Dongsheng Yang <yangds.fnst@cn.fujitsu.com>,
	<cgroups@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH V2] cgroup: Introduce cgroup_detach_task().
Date: Tue, 26 Aug 2014 09:35:36 +0800	[thread overview]
Message-ID: <53FBE468.6050805@huawei.com> (raw)
In-Reply-To: <CA+qeAOpiW41i3dKyxYp_G9kB=Z9Kr7ZXeJOyq8QZP=qy6H6T3Q@mail.gmail.com>

On 2014/8/25 23:00, Dongsheng Yang wrote:
> On Mon, Aug 25, 2014 at 10:47 PM, Tejun Heo <tj@kernel.org> 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.


  parent reply	other threads:[~2014-08-26  1:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-25 11:32 [PATCH V2] cgroup: Introduce cgroup_detach_task() Dongsheng Yang
2014-08-25 11:32 ` Dongsheng Yang
     [not found] ` <1408966330-2374-1-git-send-email-yangds.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2014-08-25 14:12   ` Tejun Heo
2014-08-25 14:12     ` Tejun Heo
     [not found]     ` <20140825141220.GA31066-9pTldWuhBndy/B6EtB590w@public.gmane.org>
2014-08-25 14:46       ` Dongsheng Yang
2014-08-25 14:46         ` Dongsheng Yang
2014-08-25 14:47         ` Tejun Heo
     [not found]           ` <20140825144710.GA21688-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
2014-08-25 15:00             ` Dongsheng Yang
2014-08-25 15:00               ` Dongsheng Yang
     [not found]               ` <CA+qeAOpiW41i3dKyxYp_G9kB=Z9Kr7ZXeJOyq8QZP=qy6H6T3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-26  1:35                 ` Li Zefan [this message]
2014-08-26  1:35                   ` Li Zefan
     [not found]                   ` <53FBE468.6050805-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-08-26  2:15                     ` Dongsheng Yang
2014-08-26  2:15                       ` Dongsheng Yang
     [not found]                       ` <CA+qeAOq-=Yzi6tNq_-2O3yYamxXH99fTd=BUFSrbgcvxW5sRSA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-26  2:22                         ` Ni, Xun
2014-08-26  2:22                           ` Ni, Xun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53FBE468.6050805@huawei.com \
    --to=lizefan-hv44wf8li93qt0dzr+alfa@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=dongsheng081251-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=yangds.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.