Tejun Heo
fa3ca07e96
cgroup: refactor hierarchy_id handling
...
We're planning to converting hierarchy_ida to an idr and use it to
look up hierarchy from its id. As we want the mapping to happen
atomically with cgroupfs_root registration, this patch refactors
hierarchy_id init / exit so that ida operations happen inside
cgroup_[root_]mutex.
* s/init_root_id()/cgroup_init_root_id()/ and make it return 0 or
-errno like a normal function.
* Move hierarchy_id initialization from cgroup_root_from_opts() into
cgroup_mount() block where the root is confirmed to be used and
being registered while holding both mutexes.
* Split cgroup_drop_id() into cgroup_exit_root_id() and
cgroup_free_root(), so that ID release can happen before dropping
the mutexes in cgroup_kill_sb(). The latter expects hierarchy_id to
be exited before being invoked.
Signed-off-by: Tejun Heo <tj@kernel.org >
Acked-by: Li Zefan <lizefan@huawei.com >
2013-05-14 11:42:05 -07:00
..
2013-04-30 08:15:40 -07:00
2013-04-30 17:04:10 -07:00
2013-05-05 13:23:27 -07:00
2013-01-11 11:39:33 -08:00
2013-05-06 11:37:43 +10:00
2013-05-02 19:40:34 -07:00
2013-05-05 13:23:27 -07:00
2013-05-05 13:23:27 -07:00
2013-05-11 17:04:59 -07:00
2013-04-22 07:09:06 -07:00
2013-05-04 14:57:58 -04:00
2013-03-12 13:59:14 -07:00
2013-04-29 15:54:26 -07:00
2013-01-11 14:54:55 -08:00
2013-05-11 14:29:11 -07:00
2013-05-11 14:29:11 -07:00
2013-05-11 14:29:11 -07:00
2013-05-07 22:27:15 -04:00
2013-04-14 10:06:31 -07:00
2012-11-19 08:13:38 -08:00
2013-05-14 11:42:05 -07:00
2013-05-01 07:21:43 -07:00
2013-05-01 17:29:18 -04:00
2013-02-19 18:19:48 -08:00
2013-02-19 19:04:55 -08:00
2013-05-01 17:51:54 -07:00
2012-12-18 10:55:28 -08:00
2013-01-27 19:23:31 +01:00
2013-05-01 17:51:54 -07:00
2013-04-15 13:25:16 +02:00
2013-05-08 11:51:05 -07:00
2012-10-26 14:27:49 -07:00
2013-02-23 18:50:11 -08:00
2013-03-12 20:42:10 -07:00
2013-05-05 13:23:27 -07:00
2013-02-05 00:48:46 +01:00
2013-04-15 15:17:26 +09:30
2012-12-20 17:40:19 -08:00
2012-09-13 17:56:13 +02:00
2013-04-30 17:04:07 -07:00
2013-04-30 17:04:06 -07:00
2013-04-18 08:58:38 -07:00
2012-12-11 18:10:49 -08:00
2013-04-30 17:04:02 -07:00
2012-10-24 12:39:09 +02:00
2013-05-08 11:51:05 -07:00
2013-05-05 10:58:06 -07:00
2013-03-15 15:09:43 +10:30
2012-12-20 17:40:21 -08:00
2012-12-05 11:27:24 +10:30
2012-10-19 17:30:40 -07:00
2013-04-17 13:23:02 +09:30
2013-04-19 09:33:36 +02:00
2013-05-01 17:29:39 -04:00
2012-12-06 17:16:23 +08:00
2013-04-30 17:04:02 -07:00
2013-03-18 11:40:21 +00:00
2013-05-01 17:51:54 -07:00
2013-05-01 17:51:54 -07:00
2013-04-22 19:59:25 +02:00
2013-04-18 12:51:19 +02:00
2013-05-07 20:16:25 -07:00
2013-05-01 17:29:18 -04:00
2013-05-07 20:16:25 -07:00
2013-04-30 17:04:01 -07:00
2013-01-28 22:06:21 -08:00
2013-01-28 22:25:21 -08:00
2013-01-28 22:06:21 -08:00
2013-01-28 22:25:21 -08:00
2013-02-04 12:18:20 -08:00
2013-05-05 13:23:27 -07:00
2013-05-05 00:16:35 -04:00
2013-05-02 17:54:19 +02:00
2013-05-02 17:54:19 +02:00
2013-05-08 10:13:35 -07:00
2012-12-18 15:02:12 -08:00
2013-04-29 15:54:40 -07:00
2013-02-07 20:51:08 +01:00
2013-04-10 14:48:37 +02:00
2013-02-07 20:51:08 +01:00
2013-03-23 15:53:52 -07:00
2013-03-26 11:07:19 +11:00
2013-04-30 17:04:08 -07:00
2013-05-01 14:08:52 -07:00
2013-04-30 17:04:03 -07:00
2013-04-12 14:18:43 +02:00
2013-05-05 13:23:27 -07:00
2013-02-07 15:19:36 -08:00
2013-02-26 22:25:17 +01:00
2013-05-09 13:46:38 -04:00
2013-05-01 07:21:43 -07:00
2013-05-09 14:53:20 -04:00
2013-04-29 15:54:36 -07:00
2012-09-13 16:47:34 +02:00
2012-10-06 03:05:31 +09:00
2013-04-29 18:28:42 -07:00
2013-03-15 16:50:20 -07:00
2013-02-16 23:17:25 +01:00
2013-05-05 13:23:27 -07:00
2013-04-29 13:55:38 -07:00
2013-01-27 19:23:31 +01:00
2013-03-03 22:58:33 -05:00
2013-05-01 17:51:54 -07:00
2013-02-27 19:10:24 -08:00
2013-05-01 17:51:54 -07:00
2013-02-27 19:10:22 -08:00
2013-05-01 17:29:39 -04:00
2012-12-06 10:39:54 +01:00
2013-03-14 08:24:05 +01:00
2013-04-30 17:04:02 -07:00
2013-04-30 17:04:02 -07:00