diff options
author | Richard Braun <rbraun@sceen.net> | 2019-09-13 12:04:22 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2019-09-13 12:04:22 +0200 |
commit | 4a23fd34e0457fdb0582dd916494815419a59479 (patch) | |
tree | 09cf33f2eacd36853974e9218105061aa5db8791 /kern/rcu.h | |
parent | b74963a3849ad107f0519ee23d0e230cdb61c66b (diff) |
Fix the documentation according to the memory modelmemory_model_dev
Also, change the ordering requirements of some operations.
Diffstat (limited to 'kern/rcu.h')
-rw-r--r-- | kern/rcu.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -80,24 +80,24 @@ struct rcu_reader; /* * Enter a read-side critical section. * - * This is an intra-thread acquire operation. + * There is a strong sequence point during this operation. */ static inline void rcu_read_enter(void) { rcu_reader_inc(thread_rcu_reader(thread_self())); - latomic_fence(LATOMIC_ACQ_REL); + latomic_fence(LATOMIC_SEQ_CST); } /* * Leave a read-side critical section. * - * This is an intra-thread release operation. + * There is a strong sequence point during this operation. */ static inline void rcu_read_leave(void) { - latomic_fence(LATOMIC_ACQ_REL); + latomic_fence(LATOMIC_SEQ_CST); rcu_reader_dec(thread_rcu_reader(thread_self())); } |