rcutorture: Extract common code from rcu_torture_reader()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 22 May 2018 17:56:05 +0000 (10:56 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:42:02 +0000 (15:42 -0700)
commit6b06aa723ed705102f3c63a494ac45352ccc0e7c
treedf9b022de08a6e20a009c87a113ea9f2ea38685d
parent2d3625841dcee549653b6f50ffa4e6431305035a
rcutorture: Extract common code from rcu_torture_reader()

This commit extracts the code executed on each pass through the loop
in rcu_torture_reader() into a new rcu_torture_one_read() function.
This new function will also be used by rcu_torture_timer().

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