Tejun Heo
0de0942db2
cgroup: make cgroup->nr_populated count the number of populated css_sets
...
Currently, cgroup->nr_populated counts whether the cgroup has any
css_sets linked to it and the number of children which has non-zero
->nr_populated. This works because a css_set's refcnt converges with
the number of tasks linked to it and thus there's no css_set linked to
a cgroup if it doesn't have any live tasks.
To help tracking resource usage of zombie tasks, putting the ref of
css_set will be separated from disassociating the task from the
css_set which means that a cgroup may have css_sets linked to it even
when it doesn't have any live tasks.
This patch updates cgroup->nr_populated so that for the cgroup itself
it counts the number of css_sets which have tasks associated with them
so that empty css_sets don't skew the populated test.
Signed-off-by: Tejun Heo <tj@kernel.org >
2015-10-15 16:41:49 -04:00
..
2015-09-09 14:11:55 -07:00
2015-06-16 11:04:29 +01:00
2015-02-19 12:39:03 -06:00
2015-09-10 13:29:01 -07:00
2015-06-30 19:44:57 -07:00
2015-09-01 14:33:35 -07:00
2015-07-14 22:48:06 +02:00
2015-09-05 20:34:28 -07:00
2015-09-02 13:10:25 -07:00
2015-09-10 13:29:01 -07:00
2015-08-04 08:49:21 -07:00
2015-09-04 16:54:41 -07:00
2015-09-01 14:04:50 -07:00
2015-09-08 14:04:14 -07:00
2015-04-11 22:27:55 -04:00
2014-10-09 22:26:04 -04:00
2015-08-06 16:14:53 -04:00
2015-09-08 13:34:59 -07:00
2015-09-08 13:34:59 -07:00
2015-09-08 13:34:59 -07:00
2015-09-08 13:34:59 -07:00
2015-08-06 16:17:25 -04:00
2015-09-08 13:34:59 -07:00
2014-08-08 15:57:18 -07:00
2015-04-15 16:35:22 -07:00
2015-07-14 17:29:23 -04:00
2015-08-25 14:19:25 -04:00
2015-10-15 16:41:49 -04:00
2015-06-04 23:57:18 +02:00
2015-05-07 12:02:51 +02:00
2015-09-03 02:42:20 +02:00
2015-08-31 20:26:22 -07:00
2015-09-22 12:46:53 -04:00
2014-08-25 15:42:19 -07:00
2015-09-10 13:29:01 -07:00
2014-07-23 10:18:06 -07:00
2015-04-12 21:03:31 +02:00
2015-08-07 13:59:49 +02:00
2015-09-10 13:29:01 -07:00
2015-09-16 12:53:17 -04:00
2014-10-21 23:44:20 +02:00
2015-07-20 21:43:54 +02:00
2015-04-15 16:35:22 -07:00
2015-04-15 16:35:22 -07:00
2014-10-29 11:18:18 -04:00
2015-08-03 11:34:16 +02:00
2014-10-14 02:18:16 +02:00
2014-09-10 15:42:12 -07:00
2015-05-12 09:46:00 +02:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-08-04 10:16:54 +02:00
2015-09-10 13:29:01 -07:00
2015-09-04 16:54:41 -07:00
2015-09-11 15:21:34 -07:00
2015-09-11 15:21:34 -07:00
2015-08-27 19:40:58 -04:00
2015-08-12 17:01:01 +01:00
2015-07-29 06:13:22 +09:30
2015-09-01 08:40:25 -07:00
2014-12-04 14:34:54 -05:00
2015-02-13 21:21:38 -08:00
2015-06-30 19:44:57 -07:00
2015-07-01 10:49:25 -07:00
2014-12-16 15:53:03 -08:00
2015-07-22 15:27:32 -07:00
2015-09-08 15:35:28 -07:00
2015-07-15 11:52:52 -07:00
2015-01-17 10:02:23 +13:00
2015-09-10 13:29:01 -07:00
2015-06-30 19:44:59 -07:00
2015-08-10 23:07:05 -04:00
2015-07-20 17:19:19 +10:00
2015-08-07 04:39:40 +03:00
2015-04-19 13:19:23 -07:00
2015-09-04 16:54:41 -07:00
2015-02-09 15:24:03 -08:00
2014-12-13 12:42:48 -08:00
2015-08-03 12:21:28 +02:00
2015-09-11 15:21:34 -07:00
2015-07-10 10:39:25 -05:00
2014-12-10 17:41:10 -08:00
2015-09-10 13:29:01 -07:00
2015-09-05 13:46:58 -07:00
2015-01-18 01:03:45 -05:00
2014-08-08 15:57:18 -07:00
2015-05-27 12:56:15 -07:00
2014-06-21 00:15:26 -04:00
2014-07-23 10:18:05 -07:00
2014-12-05 17:19:27 -06:00
2015-09-04 16:54:41 -07:00
2014-08-26 13:45:45 -04:00
2014-12-17 12:31:40 -08:00
2014-12-04 14:34:47 -05:00
2015-09-04 16:54:41 -07:00
2015-09-02 08:02:20 -07:00