]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cgroup: only need to check oldcgrp==newgrp once
authorMandeep Singh Baines <msb@chromium.org>
Thu, 22 Dec 2011 04:18:37 +0000 (20:18 -0800)
committerTejun Heo <tj@kernel.org>
Thu, 22 Dec 2011 15:32:57 +0000 (07:32 -0800)
commit892a2b90ba15cb7dbee40979f23fdb492913abf8
treedb1cb827649a846b84e9c5da03d2b2cf4aedc656
parentb07ef7741122a83575499c11417e514877941e76
cgroup: only need to check oldcgrp==newgrp once

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>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
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