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

Configure Feed

Select the types of activity you want to include in your feed.

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 <sj@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

authored by

SeongJae Park and committed by
Paul E. McKenney
47d63d7a d186204a

+4 -2
+4 -2
Documentation/RCU/rculist_nulls.rst
··· 140 140 Avoiding extra smp_rmb() 141 141 ======================== 142 142 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(). 145 144 146 145 For example, if we choose to store the slot number as the 'nulls' 147 146 end-of-list marker for each slot of the hash table, we can detect ··· 194 195 195 196 2) Insert algorithm 196 197 ------------------- 198 + 199 + Same to the above one, but uses hlist_nulls_add_head_rcu() instead of 200 + hlist_add_head_rcu(). 197 201 198 202 :: 199 203