scftorture: Add smp_call_function() memory-ordering checks
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 1 Jul 2020 20:49:06 +0000 (13:49 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 01:38:34 +0000 (18:38 -0700)
commit34e8c4837adb579962e528a4f7dd1f75cb120be4
tree96a8b4d5ff899adf81d03cdb699148123c8f828f
parent980205ee8489d53c4380f7762debac87312b0fb3
scftorture: Add smp_call_function() memory-ordering checks

This commit adds checks for memory misordering across calls to and
returns from smp_call_function() in the case where the caller waits.
Misordering results in a splat.

Note that in contrast to smp_call_function_single(), this code does not
test memory ordering into the handler in the no-wait case because none
of the handlers would be able to free the scf_check structure without
introducing heavy synchronization to work out which was last.

[ paulmck: s/GFP_KERNEL/GFP_ATOMIC/ per kernel test robot feedback. ]
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/scftorture.c