Skip to content

Commit 47d63d7

Browse files
sjp38paulmckrcu
authored andcommitted
Docs/RCU/rculist_nulls: Fix text about atomic_set_release()
The document says we can avoid extra _release() in insert function when hlist_nulls is used, but that's not true[1]. Drop it. [1] https://lore.kernel.org/rcu/46440869-644a-4982-b790-b71b43976c66@paulmck-laptop/ Signed-off-by: SeongJae Park <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent d186204 commit 47d63d7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/RCU/rculist_nulls.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ very very fast (before the end of RCU grace period)
140140
Avoiding extra smp_rmb()
141141
========================
142142

143-
With hlist_nulls we can avoid extra smp_rmb() in lockless_lookup()
144-
and extra _release() in insert function.
143+
With hlist_nulls we can avoid extra smp_rmb() in lockless_lookup().
145144

146145
For example, if we choose to store the slot number as the 'nulls'
147146
end-of-list marker for each slot of the hash table, we can detect
@@ -196,6 +195,9 @@ Note that using hlist_nulls means the type of 'obj_node' field of
196195
2) Insert algorithm
197196
-------------------
198197

198+
Same to the above one, but uses hlist_nulls_add_head_rcu() instead of
199+
hlist_add_head_rcu().
200+
199201
::
200202

201203
/*

0 commit comments

Comments
 (0)