Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131291
b: refs/heads/master
c: cfebe56
h: refs/heads/master
i:
  131289: 45fad91
  131287: 5f607db
v: v3
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Feb 11, 2009
1 parent 4e6e77d commit 6f3ce29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01c4a4283137d24c9cc3785f1f312e895a18f273
refs/heads/master: cfebe563bd0a3ff97e1bc167123120d59c7a84db
1 change: 1 addition & 0 deletions trunk/include/linux/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ struct cgroup_subsys {
* - initiating hotplug events
*/
struct mutex hierarchy_mutex;
struct lock_class_key subsys_key;

/*
* Link to parent, and list entry in parent's children.
Expand Down
3 changes: 2 additions & 1 deletion trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -2351,7 +2351,7 @@ static void cgroup_lock_hierarchy(struct cgroupfs_root *root)
for (i = 0; i < CGROUP_SUBSYS_COUNT; i++) {
struct cgroup_subsys *ss = subsys[i];
if (ss->root == root)
mutex_lock_nested(&ss->hierarchy_mutex, i);
mutex_lock(&ss->hierarchy_mutex);
}
}

Expand Down Expand Up @@ -2637,6 +2637,7 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss)
BUG_ON(!list_empty(&init_task.tasks));

mutex_init(&ss->hierarchy_mutex);
lockdep_set_class(&ss->hierarchy_mutex, &ss->subsys_key);
ss->active = 1;
}

Expand Down

0 comments on commit 6f3ce29

Please sign in to comment.