X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=urcu%2Frcuhlist.h;h=cce80aaf473890bcb42d8f8a82bd0dc1f0203f2b;hb=5481ddb381061bda64aebc039900d21cac6a6caf;hp=be74145122a964b9d82aa38353b0f5d72f584b09;hpb=5db941e8f87f9728883c2dd0446698d13d5b9fec;p=userspace-rcu.git diff --git a/urcu/rcuhlist.h b/urcu/rcuhlist.h index be74145..cce80aa 100644 --- a/urcu/rcuhlist.h +++ b/urcu/rcuhlist.h @@ -30,12 +30,12 @@ /* Add new element at the head of the list. */ -static inline void hlist_add_head(struct hlist_node *newp, - struct hlist_head *head) +static inline void hlist_add_head_rcu(struct hlist_node *newp, + struct hlist_head *head) { newp->next = head->next; newp->prev = (struct hlist_node *)head; - smp_wmb(); + cmm_smp_wmb(); if (head->next) head->next->prev = newp; head->next = newp;