rcutorture: Make rcu_torture_reader() use cond_resched()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 12 Mar 2014 17:26:35 +0000 (10:26 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 14 May 2014 16:46:13 +0000 (09:46 -0700)
commit64e4b43ae050146fcfafe696e61efc306f73d449
tree0c3cd8cdbd849980ae33b9b3b526b327ecb7e323
parentac1bea85781e9004da9b3e8a4b097c18492d857c
rcutorture: Make rcu_torture_reader() use cond_resched()

The rcu_torture_reader() function currently uses schedule().  This commit
therefore speeds things up a bit by substituting cond_resched().
This change makes rcu_torture_reader() more CPU-bound, so this commit
also adjusts the number of readers (the "nreaders" module parameter,
which feeds into the "nrealreaders" variable) to allow one CPU to be
free of readers on SMP systems.  The point of this is to increase the
probability that readers will be watching while an updater makes a change.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/rcutorture.c
This page took 0.025555 seconds and 5 git commands to generate.