cgroup_freezer: update comment for freezer_css_online()
authorXiu Jianfeng <xiujianfeng@huawei.com>
Wed, 17 Apr 2024 03:50:28 +0000 (03:50 +0000)
committerTejun Heo <tj@kernel.org>
Thu, 18 Apr 2024 01:59:12 +0000 (15:59 -1000)
The freezer->lock was replaced by freezer_mutex in commit e5ced8ebb10c
("cgroup_freezer: replace freezer->lock with freezer_mutex"), so the
comment here is out-of-date, update it.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/legacy_freezer.c

index 66d1708042a72bf5d25b9ff1d7acb8d91183ffd7..d598cc6ee92e9ea9d4f9a8063eee17ff1bfa80df 100644 (file)
@@ -106,8 +106,7 @@ freezer_css_alloc(struct cgroup_subsys_state *parent_css)
  * @css: css being created
  *
  * We're committing to creation of @css.  Mark it online and inherit
- * parent's freezing state while holding both parent's and our
- * freezer->lock.
+ * parent's freezing state while holding cpus read lock and freezer_mutex.
  */
 static int freezer_css_online(struct cgroup_subsys_state *css)
 {