linux/kernel/cgroup
Waiman Long 73a7242a06 cgroup: Keep accurate count of tasks in each css_set
The reference count in the css_set data structure was used as a
proxy of the number of tasks attached to that css_set. However, that
count is actually not an accurate measure especially with thread mode
support. So a new variable nr_tasks is added to the css_set to keep
track of the actual task count. This new variable is protected by
the css_set_lock. Functions that require the actual task count are
updated to use the new variable.

tj: s/task_count/nr_tasks/ for consistency with cgroup_root->nr_cgrps.
    Refreshed on top of cgroup/for-v4.13 which dropped on
    css_set_populated() -> nr_tasks conversion.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2017-06-14 16:01:21 -04:00
..
cgroup-internal.h cgroup: avoid attaching a cgroup root to two different superblocks, take 2 2017-04-28 18:04:54 -04:00
cgroup-v1.c cgroup: Keep accurate count of tasks in each css_set 2017-06-14 16:01:21 -04:00
cgroup.c cgroup: Keep accurate count of tasks in each css_set 2017-06-14 16:01:21 -04:00
cpuset.c cpuset: consider dying css as offline 2017-05-24 12:43:30 -04:00
freezer.c
Makefile rdmacg: Added rdma cgroup controller 2017-01-10 11:14:27 -05:00
namespace.c kernel: convert cgroup_namespace.count from atomic_t to refcount_t 2017-03-06 14:55:22 -05:00
pids.c cgroup/pids: remove spurious suspicious RCU usage warning 2017-03-06 15:11:29 -05:00
rdma.c rdmacg: Fixed uninitialized current resource usage 2017-01-10 12:52:32 -05:00