RCU lock-free stack: don't hold read lock across retry
[urcu.git] / urcu / rculfqueue.h
index f9b14fe93657343c5e1917ab77afcab4dc087a0d..32fca49a6cb126a38ad4342c31a23a74a091545f 100644 (file)
@@ -78,7 +78,7 @@ void rcu_lfq_enqueue(struct rcu_lfq_queue *q, struct rcu_lfq_node *node)
                struct rcu_lfq_node *next;
 
                /*
-                * Typically expect tail to be NULL.
+                * Typically expect tail->next to be NULL.
                 */
                next = uatomic_cmpxchg(&tail->next, NULL, node);
                if (next == NULL) {
@@ -107,7 +107,7 @@ void rcu_lfq_enqueue(struct rcu_lfq_queue *q, struct rcu_lfq_node *node)
  * which calls the release primitive when the reference count drops to zero. A
  * grace period must be waited before performing the actual memory reclamation
  * in the release primitive.
- * The entry lfq node returned by dequeue must no be re-used before the
+ * The entry lfq node returned by dequeue must not be re-used before the
  * reference count reaches zero.
  */
 struct rcu_lfq_node *
This page took 0.022544 seconds and 4 git commands to generate.