mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cgroup: Fix incorrect css_set_rwsem reference in comment
@ 2023-10-12 17:09 Waiman Long
  2023-10-12 17:23 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Waiman Long @ 2023-10-12 17:09 UTC (permalink / raw)
  To: Tejun Heo, Zefan Li, Johannes Weiner; +Cc: cgroups, linux-kernel, Waiman Long

Since commit f0d9a5f17575 ("cgroup: make css_set_rwsem a spinlock
and rename it to css_set_lock"), css_set_rwsem has been replaced by
css_set_lock. That commit, however, missed the css_set_rwsem reference
in include/linux/cgroup-defs.h. Fix that by changing it to css_set_lock
as well.

Signed-off-by: Waiman Long <longman@redhat.com>
---
 include/linux/cgroup-defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h
index f1b3151ac30b..265da00a1a8b 100644
--- a/include/linux/cgroup-defs.h
+++ b/include/linux/cgroup-defs.h
@@ -238,7 +238,7 @@ struct css_set {
 	 * Lists running through all tasks using this cgroup group.
 	 * mg_tasks lists tasks which belong to this cset but are in the
 	 * process of being migrated out or in.  Protected by
-	 * css_set_rwsem, but, during migration, once tasks are moved to
+	 * css_set_lock, but, during migration, once tasks are moved to
 	 * mg_tasks, it can be read safely while holding cgroup_mutex.
 	 */
 	struct list_head tasks;
-- 
2.39.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] cgroup: Fix incorrect css_set_rwsem reference in comment
  2023-10-12 17:09 [PATCH] cgroup: Fix incorrect css_set_rwsem reference in comment Waiman Long
@ 2023-10-12 17:23 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2023-10-12 17:23 UTC (permalink / raw)
  To: Waiman Long; +Cc: Zefan Li, Johannes Weiner, cgroups, linux-kernel

On Thu, Oct 12, 2023 at 01:09:02PM -0400, Waiman Long wrote:
> Since commit f0d9a5f17575 ("cgroup: make css_set_rwsem a spinlock
> and rename it to css_set_lock"), css_set_rwsem has been replaced by
> css_set_lock. That commit, however, missed the css_set_rwsem reference
> in include/linux/cgroup-defs.h. Fix that by changing it to css_set_lock
> as well.
> 
> Signed-off-by: Waiman Long <longman@redhat.com>

Applied to cgroup/for-6.6-fixes.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-12 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-12 17:09 [PATCH] cgroup: Fix incorrect css_set_rwsem reference in comment Waiman Long
2023-10-12 17:23 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®