cgroup: fix obsolete comment above for_each_css()

Message ID 20230627114059.1310936-1-linmiaohe@huawei.com
State New
Headers
Series cgroup: fix obsolete comment above for_each_css() |

Commit Message

Miaohe Lin June 27, 2023, 11:40 a.m. UTC
  cgroup_tree_mutex is removed since commit 8353da1f91f1 ("cgroup: remove
cgroup_tree_mutex"), update corresponding comment.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 kernel/cgroup/cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Tejun Heo July 10, 2023, 8:47 p.m. UTC | #1
On Tue, Jun 27, 2023 at 07:40:59PM +0800, Miaohe Lin wrote:
> cgroup_tree_mutex is removed since commit 8353da1f91f1 ("cgroup: remove
> cgroup_tree_mutex"), update corresponding comment.
> 
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>

Applied to cgroup/for-6.6.

Thanks.
  

Patch

diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 4d42f0cbc11e..a6238958fe0b 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -680,7 +680,7 @@  EXPORT_SYMBOL_GPL(of_css);
  * @ssid: the index of the subsystem, CGROUP_SUBSYS_COUNT after reaching the end
  * @cgrp: the target cgroup to iterate css's of
  *
- * Should be called under cgroup_[tree_]mutex.
+ * Should be called under cgroup_mutex.
  */
 #define for_each_css(css, ssid, cgrp)					\
 	for ((ssid) = 0; (ssid) < CGROUP_SUBSYS_COUNT; (ssid)++)	\