Commit 648bb56
committed
cgroup: lock cgroup_mutex in cgroup_init_subsys()
Make cgroup_init_subsys() grab cgroup_mutex while initializing a
subsystem so that all helpers and callbacks are called under the
context they expect. This isn't strictly necessary as
cgroup_init_subsys() doesn't race with anybody but will allow adding
lockdep assertions.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>1 parent b48c6a8 commit 648bb56
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4317 | 4317 | | |
4318 | 4318 | | |
4319 | 4319 | | |
| 4320 | + | |
| 4321 | + | |
4320 | 4322 | | |
4321 | 4323 | | |
4322 | 4324 | | |
| |||
4346 | 4348 | | |
4347 | 4349 | | |
4348 | 4350 | | |
| 4351 | + | |
| 4352 | + | |
4349 | 4353 | | |
4350 | 4354 | | |
4351 | 4355 | | |
| |||
0 commit comments