]> git.ipfire.org Git - thirdparty/linux.git/commit
rculist: move list_for_each_rcu() to where it belongs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 10 Jul 2025 12:15:28 +0000 (15:15 +0300)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 25 Aug 2025 17:13:26 +0000 (10:13 -0700)
commita214365140cc3009f07d4e14a8b481fd3dc41d31
tree11aa20c4f1608571db19112f2f46a2c64c8da794
parent42d590d100f2e47e47d974a902b9ed610e464824
rculist: move list_for_each_rcu() to where it belongs

The list_for_each_rcu() relies on the rcu_dereference() API which is not
provided by the list.h. At the same time list.h is a low-level basic header
that must not have dependencies like RCU, besides the fact of the potential
circular dependencies in some cases. With all that said, move RCU related
API to the rculist.h where it belongs.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>
Reviewed-by: "Paul E. McKenney" <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
Signed-off-by: "Paul E. McKenney" <paulmck@kernel.org>
include/linux/list.h
include/linux/rculist.h
kernel/cgroup/dmem.c