Docs/RCU/rculist_nulls: Fix text about atomic_set_release()
authorSeongJae Park <sj@kernel.org>
Fri, 16 Jun 2023 23:36:26 +0000 (23:36 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jul 2023 21:55:57 +0000 (14:55 -0700)
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>
Documentation/RCU/rculist_nulls.rst

index 1fb086066377cd68098110c0343623485524f9ae..21e40fcc08de70119b455e4c3f9fd8358058d74d 100644 (file)
@@ -140,8 +140,7 @@ very very fast (before the end of RCU grace period)
 Avoiding extra smp_rmb()
 ========================
 
-With hlist_nulls we can avoid extra smp_rmb() in lockless_lookup()
-and extra _release() in insert function.
+With hlist_nulls we can avoid extra smp_rmb() in lockless_lookup().
 
 For example, if we choose to store the slot number as the 'nulls'
 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
 2) Insert algorithm
 -------------------
 
+Same to the above one, but uses hlist_nulls_add_head_rcu() instead of
+hlist_add_head_rcu().
+
 ::
 
   /*