aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2016-03-30 14:40:44 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2016-04-21 16:47:04 -0400
commit0aa67e75b3d59cfe412bfa54ca23797e6c2e3270 (patch)
tree8c6787bf8a2c7bba19f830ac87d67d245d4f8ee8 /kernel/rcu
parente9fb365a8847dfe8a9fccae0dce77abf7276b5da (diff)
rcutorture: Add irqs-disabled test for call_rcu()
Mutation testing carried out by Iftekhar Ahmed of Oregon State University showed that rcutorture is failing to test invocations of call_rcu() having interrupts disabled. This commit therefore adds interrupt disabling around one of the existing invocations of call_rcu() (and friends). Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/rcutorture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index 633a68a09440..084a28a732eb 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -1478,7 +1478,9 @@ static int rcu_torture_barrier_cbs(void *arg)
1478 * The above smp_load_acquire() ensures barrier_phase load 1478 * The above smp_load_acquire() ensures barrier_phase load
1479 * is ordered before the folloiwng ->call(). 1479 * is ordered before the folloiwng ->call().
1480 */ 1480 */
1481 local_irq_disable(); /* Just to test no-irq call_rcu(). */
1481 cur_ops->call(&rcu, rcu_torture_barrier_cbf); 1482 cur_ops->call(&rcu, rcu_torture_barrier_cbf);
1483 local_irq_enable();
1482 if (atomic_dec_and_test(&barrier_cbs_count)) 1484 if (atomic_dec_and_test(&barrier_cbs_count))
1483 wake_up(&barrier_wq); 1485 wake_up(&barrier_wq);
1484 } while (!torture_must_stop()); 1486 } while (!torture_must_stop());