diff options
Diffstat (limited to 'include/linux/cgroup.h')
| -rw-r--r-- | include/linux/cgroup.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 90bba9e62286..c833d6f23672 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
| @@ -179,11 +179,14 @@ struct cgroup { | |||
| 179 | */ | 179 | */ |
| 180 | struct list_head release_list; | 180 | struct list_head release_list; |
| 181 | 181 | ||
| 182 | /* pids_mutex protects pids_list and cached pid arrays. */ | 182 | /* pids_mutex protects the fields below */ |
| 183 | struct rw_semaphore pids_mutex; | 183 | struct rw_semaphore pids_mutex; |
| 184 | 184 | /* Array of process ids in the cgroup */ | |
| 185 | /* Linked list of struct cgroup_pids */ | 185 | pid_t *tasks_pids; |
| 186 | struct list_head pids_list; | 186 | /* How many files are using the current tasks_pids array */ |
| 187 | int pids_use_count; | ||
| 188 | /* Length of the current tasks_pids array */ | ||
| 189 | int pids_length; | ||
| 187 | 190 | ||
| 188 | /* For RCU-protected deletion */ | 191 | /* For RCU-protected deletion */ |
| 189 | struct rcu_head rcu_head; | 192 | struct rcu_head rcu_head; |
