rcutorture: Limit reader duration if irq or bh disabled
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 20 Jul 2018 19:04:12 +0000 (12:04 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 29 Aug 2018 16:20:48 +0000 (09:20 -0700)
commit1e69676592edaf81eed88ba53f5239d84fae4e67
treedad4072ba19da10226b75352dd7d61cf701a3ff1
parent3cff54a830f760eafc9c20191ce1d4b8c356d002
rcutorture: Limit reader duration if irq or bh disabled

There are debug checks in some environments that will complain if the
duration of a bh-disabled region of code exceeds about 50 milliseconds.
Because rcu_read_delay() can produce a 50-millisecond delay and because
there could be up to eight reader segments with such delays, this commit
limits the maximum delay to 10 milliseconds if either interrupts or
softirqs are disabled.

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/rcutorture.c