Skip to content
Commit ee7035d2 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

scftorture: Prevent compiler from reducing race probabilities



Detecting smp_call_function() memory misordering requires close timing,
so it is necessary to have the checks immediately before and after
the call to the smp_call_function*() function under test.  This commit
therefore inserts barrier() calls to prevent the compiler from optimizing
memory-misordering detection down into the zone of extreme improbability.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent dbf83b65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment