X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu.c;h=bb6629c718086a9800a22a4d3ab21685b27c26a5;hp=b8567555d09ecbb22547aa6f236392d439eea871;hb=935b11ff4cf9053954d21b9d63c4ee367b12a652;hpb=7a5a38f52b8814d0188b74a91cb635bc205df96c diff --git a/urcu.c b/urcu.c index b856755..bb6629c 100644 --- a/urcu.c +++ b/urcu.c @@ -215,6 +215,10 @@ void update_counter_and_wait(void) */ /* + * Enforce compiler-order of store to rcu_gp_ctr before before + * load rcu_reader ctr. + * This ensures synchronize_rcu() cannot be starved by readers. + * * Adding a smp_mb() which is _not_ formally required, but makes the * model easier to understand. It does not have a big performance impact * anyway, given this is the write-side.