Merge branch 'master' into urcu/rcuja-range
[userspace-rcu.git] / urcu / rculist.h
index 1fd2df388f57cefc0ea19fa02a0c8c0b627847e8..6759947dba2b78bcdb41b16222afd490922722f9 100644 (file)
@@ -33,7 +33,9 @@
 static inline
 void cds_list_add_rcu(struct cds_list_head *newp, struct cds_list_head *head)
 {
-       newp->next = head->next;
+       struct cds_list_head *first = head->next;
+
+       newp->next = first;
        newp->prev = head;
        head->next->prev = newp;
        rcu_assign_pointer(head->next, newp);
This page took 0.023212 seconds and 4 git commands to generate.