cgroups: use hierarchy mutex in creation failure path
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Thu, 29 Jan 2009 22:25:10 +0000 (14:25 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Jan 2009 02:04:43 +0000 (18:04 -0800)
commitbaef99a08a2e23d9386b47e53fa5f0d44fc98f66
tree0171abae8bd05710c83444b8a236fc6ffbcac71c
parent9e9e3cbc62da43c66e894d5a61fa08b427e25202
cgroups: use hierarchy mutex in creation failure path

Now, cgrp->sibling is handled under hierarchy mutex.
error route should do so, too.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: 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