Messages in this thread | | | Date | Wed, 21 Dec 2011 09:29:25 +0800 | From | Li Zefan <> | Subject | Re: [PATCH 3/5] cgroup: only need to check oldcgrp==newgrp once |
| |
Mandeep Singh Baines wrote: > In cgroup_attach_proc it is now sufficient to only check that > oldcgrp==newcgrp once. Now that we are using threadgroup_lock() > during the migrations, oldcgrp will not change. > > Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
> Cc: Tejun Heo <tj@kernel.org> > Cc: Li Zefan <lizf@cn.fujitsu.com> > Cc: containers@lists.linux-foundation.org > Cc: cgroups@vger.kernel.org > Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > Cc: Frederic Weisbecker <fweisbec@gmail.com> > Cc: Oleg Nesterov <oleg@redhat.com> > Cc: Andrew Morton <akpm@linux-foundation.org> > Cc: Paul Menage <paul@paulmenage.org> > --- > kernel/cgroup.c | 17 ++++++----------- > 1 files changed, 6 insertions(+), 11 deletions(-)
| |