]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - kernel/torture.c
torture: Make stutter less vulnerable to compilers and races
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 21 Nov 2017 23:01:02 +0000 (15:01 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 11 Dec 2017 17:18:29 +0000 (09:18 -0800)
commit4ced3314fd3a73dabac4e8a41747883eff36c3e8
treeaba2f62defd17a44cb3a0b6b7c8effa98ce5c7cd
parent2ce77d16db4240dd2e422fc0a5c26d3e2ec03446
torture: Make stutter less vulnerable to compilers and races

The stutter_wait() function repeatedly fetched stutter_pause_test, and
should really just fetch it once on each pass.  The races should be
harmless, but why have the races?  Also, the whole point of the value
"2" for stutter_pause_test is to get everyone to start at very nearly
the same time, but the value "2" was the first jiffy of the stutter
rather than the last jiffy of the stutter.

This commit rearranges the code to be more sensible.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/torture.c