projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e9e3cb
)
cgroups: use hierarchy mutex in creation failure path
author
KAMEZAWA Hiroyuki
<kamezawa.hiroyu@jp.fujitsu.com>
Thu, 29 Jan 2009 22:25:10 +0000
(14:25 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 30 Jan 2009 02:04:43 +0000
(18:04 -0800)
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
patch
|
blob
|
history
diff --git
a/kernel/cgroup.c
b/kernel/cgroup.c
index c29831076e7a2e156e584725453c51568682eb93..2ae7cb47dbfa07ff13ab00776b64bd40bbfe09c8 100644
(file)
--- a/
kernel/cgroup.c
+++ b/
kernel/cgroup.c
@@
-2434,7
+2434,9
@@
static long cgroup_create(struct cgroup *parent, struct dentry *dentry,
err_remove:
+ cgroup_lock_hierarchy(root);
list_del(&cgrp->sibling);
+ cgroup_unlock_hierarchy(root);
root->number_of_cgroups--;
err_destroy: