projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc77a72
)
rcutorture: Check for unwatched readers
author
Paul E. McKenney
<paulmck@kernel.org>
Thu, 11 Jun 2020 23:43:14 +0000
(16:43 -0700)
committer
Paul E. McKenney
<paulmck@kernel.org>
Mon, 29 Jun 2020 19:01:44 +0000
(12:01 -0700)
RCU is supposed to be watching all non-idle kernel code and also all
softirq handlers. This commit adds some teeth to this statement by
adding a WARN_ON_ONCE().
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c
patch
|
blob
|
history
diff --git
a/kernel/rcu/rcutorture.c
b/kernel/rcu/rcutorture.c
index
37455a1
..
9c31001
100644
(file)
--- a/
kernel/rcu/rcutorture.c
+++ b/
kernel/rcu/rcutorture.c
@@
-1377,6
+1377,7
@@
static bool rcu_torture_one_read(struct torture_random_state *trsp)
struct rt_read_seg *rtrsp1;
unsigned long long ts;
+ WARN_ON_ONCE(!rcu_is_watching());
newstate = rcutorture_extend_mask(readstate, trsp);
rcutorture_one_extend(&readstate, newstate, trsp, rtrsp++);
started = cur_ops->get_gp_seq();