cgroups: fix lock inconsistency in cgroup_clone()
commit1404f06565ee89e0ce04d4a5859c00b0e3a0dc8d
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 29 Jan 2009 22:25:21 +0000 (29 14:25 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Jan 2009 02:04:45 +0000 (29 18:04 -0800)
treee2f294ed420461e0032e03143f06634b883dc06e
parent945048ca36173315afa2f0c53bed21ba01a588c1
cgroups: fix lock inconsistency in cgroup_clone()

I fixed a bug in cgroup_clone() in Linus' tree in commit 7b574b7
("cgroups: fix a race between cgroup_clone and umount") without noticing
there was a cleanup patch in -mm tree that should be rebased (now commit
104cbd5, "cgroups: use task_lock() for access tsk->cgroups safe in
cgroup_clone()"), thus resulted in lock inconsistency.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup.c