diff options
| author | Paul E. McKenney <[email protected]> | 2019-11-04 16:22:45 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2020-01-24 18:27:33 +0000 |
| commit | c51f83c315c392d9776c33eb16a2fe1349d65c7f (patch) | |
| tree | c0ae69a187c5acd5314516670f1b58140ca38ebb /tools/perf/scripts/python | |
| parent | rcu: Clear ->rcu_read_unlock_special only once (diff) | |
| download | kernel-c51f83c315c392d9776c33eb16a2fe1349d65c7f.tar.gz kernel-c51f83c315c392d9776c33eb16a2fe1349d65c7f.zip | |
rcu: Use READ_ONCE() for ->expmask in rcu_read_unlock_special()
The rcu_node structure's ->expmask field is updated only when holding the
->lock, but is also accessed locklessly. This means that all ->expmask
updates must use WRITE_ONCE() and all reads carried out without holding
->lock must use READ_ONCE(). This commit therefore changes the lockless
->expmask read in rcu_read_unlock_special() to use READ_ONCE().
Reported-by: [email protected]
Signed-off-by: Paul E. McKenney <[email protected]>
Acked-by: Marco Elver <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
