X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=urcu-qsbr-static.h;h=8735c7fd3fe081f36e86af5cc6292e827ff8802b;hp=1cac56cb8a561ae509f1f4722a7c94504b914b48;hb=bd1a5e15ab6d3e42be1af622bbc53a30f5ae3769;hpb=b4e52e3e9e563d38607a8e0ab0aa72e7ab2b47b4 diff --git a/urcu-qsbr-static.h b/urcu-qsbr-static.h index 1cac56c..8735c7f 100644 --- a/urcu-qsbr-static.h +++ b/urcu-qsbr-static.h @@ -184,8 +184,10 @@ static inline void reader_barrier() extern unsigned long urcu_gp_ctr; struct urcu_reader { + /* Data used by both reader and synchronize_rcu() */ unsigned long ctr; - struct list_head head; + /* Data used for registry */ + struct list_head head __attribute__((aligned(CACHE_LINE_SIZE))); pthread_t tid; };