diff options
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d3f5fba2c159..c90eaa803440 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -500,21 +500,8 @@ struct cgroup_subsys { | |||
500 | const char *name; | 500 | const char *name; |
501 | 501 | ||
502 | /* | 502 | /* |
503 | * Protects sibling/children links of cgroups in this | ||
504 | * hierarchy, plus protects which hierarchy (or none) the | ||
505 | * subsystem is a part of (i.e. root/sibling). To avoid | ||
506 | * potential deadlocks, the following operations should not be | ||
507 | * undertaken while holding any hierarchy_mutex: | ||
508 | * | ||
509 | * - allocating memory | ||
510 | * - initiating hotplug events | ||
511 | */ | ||
512 | struct mutex hierarchy_mutex; | ||
513 | struct lock_class_key subsys_key; | ||
514 | |||
515 | /* | ||
516 | * Link to parent, and list entry in parent's children. | 503 | * Link to parent, and list entry in parent's children. |
517 | * Protected by this->hierarchy_mutex and cgroup_lock() | 504 | * Protected by cgroup_lock() |
518 | */ | 505 | */ |
519 | struct cgroupfs_root *root; | 506 | struct cgroupfs_root *root; |
520 | struct list_head sibling; | 507 | struct list_head sibling; |
@@ -602,7 +589,7 @@ int cgroup_attach_task_all(struct task_struct *from, struct task_struct *); | |||
602 | * the lifetime of cgroup_subsys_state is subsys's matter. | 589 | * the lifetime of cgroup_subsys_state is subsys's matter. |
603 | * | 590 | * |
604 | * Looking up and scanning function should be called under rcu_read_lock(). | 591 | * Looking up and scanning function should be called under rcu_read_lock(). |
605 | * Taking cgroup_mutex()/hierarchy_mutex() is not necessary for following calls. | 592 | * Taking cgroup_mutex is not necessary for following calls. |
606 | * But the css returned by this routine can be "not populated yet" or "being | 593 | * But the css returned by this routine can be "not populated yet" or "being |
607 | * destroyed". The caller should check css and cgroup's status. | 594 | * destroyed". The caller should check css and cgroup's status. |
608 | */ | 595 | */ |