diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2020-07-02 02:38:16 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-08-25 04:38:36 +0300 |
commit | ee7035d29576dcb59b1191e5f609517cacab1e56 (patch) | |
tree | 72cd20ebd862dd36da3d5a565c5ef14897d75848 /lib/debugobjects.c | |
parent | dbf83b655a7853bc430af10e9a3e7eb1f4c90f86 (diff) | |
download | linux-ee7035d29576dcb59b1191e5f609517cacab1e56.tar.xz |
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: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions