diff options
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 8c283a910b91..528e2aed36c3 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -324,10 +324,14 @@ struct css_set { | |||
324 | struct hlist_node hlist; | 324 | struct hlist_node hlist; |
325 | 325 | ||
326 | /* | 326 | /* |
327 | * List running through all tasks using this cgroup | 327 | * Lists running through all tasks using this cgroup group. |
328 | * group. Protected by css_set_lock | 328 | * mg_tasks lists tasks which belong to this cset but are in the |
329 | * process of being migrated out or in. Protected by | ||
330 | * css_set_rwsem, but, during migration, once tasks are moved to | ||
331 | * mg_tasks, it can be read safely while holding cgroup_mutex. | ||
329 | */ | 332 | */ |
330 | struct list_head tasks; | 333 | struct list_head tasks; |
334 | struct list_head mg_tasks; | ||
331 | 335 | ||
332 | /* | 336 | /* |
333 | * List of cgrp_cset_links pointing at cgroups referenced from this | 337 | * List of cgrp_cset_links pointing at cgroups referenced from this |