projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into urcu/rcuja-range
[userspace-rcu.git]
/
urcu
/
rculist.h
diff --git
a/urcu/rculist.h
b/urcu/rculist.h
index 1fd2df388f57cefc0ea19fa02a0c8c0b627847e8..6759947dba2b78bcdb41b16222afd490922722f9 100644
(file)
--- a/
urcu/rculist.h
+++ b/
urcu/rculist.h
@@
-33,7
+33,9
@@
static inline
void cds_list_add_rcu(struct cds_list_head *newp, struct cds_list_head *head)
{
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);
newp->prev = head;
head->next->prev = newp;
rcu_assign_pointer(head->next, newp);
This page took
0.024715 seconds
and
4
git commands to generate.