summaryrefslogtreecommitdiff
path: root/lib/crc32.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-01-24 12:58:15 -0800
committerPaul E. McKenney <paulmck@kernel.org>2020-02-20 15:59:59 -0800
commitc0e1472d80784206ead1dd803dd4bc10e282b17f (patch)
tree6d42811e526980da127270167e766a163836dc79 /lib/crc32.c
parent7aabb6f839622bc96a425d93f3f7373167be1e19 (diff)
downloadlinux-next-c0e1472d80784206ead1dd803dd4bc10e282b17f.tar.gz
locktorture: Use private random-number generators
Both lock_torture_writer() and lock_torture_reader() use the "static" keyword on their DEFINE_TORTURE_RANDOM(rand) declarations, which means that a single instance of a random-number generator are shared among all the writers and another is shared among all the readers. Unfortunately, this random-number generator was not designed for concurrent access. This commit therefore removes both "static" keywords so that each reader and each writer gets its own random-number generator. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'lib/crc32.c')
0 files changed, 0 insertions, 0 deletions