cgroup.c (27988c96687667e74df1a9a3b8662519bc1c29c9) | cgroup.c (f9a25f776d780bfa3279f0b6e5f5cf3224997976) |
---|---|
1/* 2 * Generic process-grouping system. 3 * 4 * Based originally on the cpuset system, extracted by Paul Menage 5 * Copyright (C) 2006 Google, Inc 6 * 7 * Notifications support 8 * Copyright (C) 2009 Nokia Corporation --- 1877 unchanged lines hidden (view full) --- 1886/* 1887 * To reduce the fork() overhead for systems that are not actually using 1888 * their cgroups capability, we don't maintain the lists running through 1889 * each css_set to its tasks until we see the list actually used - in other 1890 * words after the first mount. 1891 */ 1892static bool use_task_css_set_links __read_mostly; 1893 | 1/* 2 * Generic process-grouping system. 3 * 4 * Based originally on the cpuset system, extracted by Paul Menage 5 * Copyright (C) 2006 Google, Inc 6 * 7 * Notifications support 8 * Copyright (C) 2009 Nokia Corporation --- 1877 unchanged lines hidden (view full) --- 1886/* 1887 * To reduce the fork() overhead for systems that are not actually using 1888 * their cgroups capability, we don't maintain the lists running through 1889 * each css_set to its tasks until we see the list actually used - in other 1890 * words after the first mount. 1891 */ 1892static bool use_task_css_set_links __read_mostly; 1893 |
1894static void cgroup_enable_task_cg_lists(void) | 1894void cgroup_enable_task_cg_lists(void) |
1895{ 1896 struct task_struct *p, *g; 1897 1898 /* 1899 * We need tasklist_lock because RCU is not safe against 1900 * while_each_thread(). Besides, a forking task that has passed 1901 * cgroup_post_fork() without seeing use_task_css_set_links = 1 1902 * is not guaranteed to have its child immediately visible in the --- 4598 unchanged lines hidden --- | 1895{ 1896 struct task_struct *p, *g; 1897 1898 /* 1899 * We need tasklist_lock because RCU is not safe against 1900 * while_each_thread(). Besides, a forking task that has passed 1901 * cgroup_post_fork() without seeing use_task_css_set_links = 1 1902 * is not guaranteed to have its child immediately visible in the --- 4598 unchanged lines hidden --- |