diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2020-06-24 03:09:27 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-08-25 04:36:06 +0300 |
commit | b5374b2df0ac1c78895b8eb8d9582a7bdc67257d (patch) | |
tree | fe85aaaab9d7064dbd619c4198537f9a5d727604 /scripts/gdb/linux/proc.py | |
parent | 2130c6b4f610ea65e9df71dfa79ee08f2fc17743 (diff) | |
download | linux-b5374b2df0ac1c78895b8eb8d9582a7bdc67257d.tar.xz |
rcu: Add READ_ONCE() to rcu_do_batch() access to rcu_divisor
Given that sysfs can change the value of rcu_divisor at any time, this
commit adds a READ_ONCE to the sole access to that variable. While in
the area, this commit also adds bounds checking, clamping the value to
a shift that makes sense for a signed long.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions