Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rculist: Replace reference to atomic_ops.rst

The hlist_nulls_for_each_entry_rcu() docbook header references the
atomic_ops.rst file, which was removed in commit f0400a77ebdc ("atomic:
Delete obsolete documentation"). This commit therefore substitutes a
section in memory-barriers.txt discussing the use of barrier() in loops.

Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

authored by

Akira Yokosawa and committed by
Paul E. McKenney
5bb1369d 6494ccb9

+1 -1
+1 -1
include/linux/rculist_nulls.h
··· 161 161 * 162 162 * The barrier() is needed to make sure compiler doesn't cache first element [1], 163 163 * as this loop can be restarted [2] 164 - * [1] Documentation/core-api/atomic_ops.rst around line 114 164 + * [1] Documentation/memory-barriers.txt around line 1533 165 165 * [2] Documentation/RCU/rculist_nulls.rst around line 146 166 166 */ 167 167 #define hlist_nulls_for_each_entry_rcu(tpos, pos, head, member) \