OSDN Git Service

rcutorture: remove synchronize_rcu from readers
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Mar 2018 11:12:29 +0000 (12:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Mar 2018 15:12:47 +0000 (16:12 +0100)
commitb9b758175424857a900c3253ffb8e55fa0a3fdd6
treebbd765277510d62f1080278c1dc4b23bb4a37f7a
parent148b2ba1145af29a7afac349b8169790e06d6df4
rcutorture: remove synchronize_rcu from readers

This gives much worse numbers for readers, especially if synchronize_rcu
is made more expensive as is the case with --enable-membarrier.  Before:

   $ tests/rcutorture 10 stress 10
   n_reads: 98304  n_updates: 529  n_mberror: 0
   rcu_stress_count: 98302 2 0 0 0 0 0 0 0 0 0

After:

   $ tests/rcutorture 10 stress 10
   n_reads: 165158482  n_updates: 429  n_mberror: 0
   rcu_stress_count: 165154364 4118 0 0 0 0 0 0 0 0 0

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/rcutorture.c