diff options
author | 2020-06-23 17:09:27 -0700 | |
---|---|---|
committer | 2020-08-24 18:36:06 -0700 | |
commit | b5374b2df0ac1c78895b8eb8d9582a7bdc67257d (patch) | |
tree | fe85aaaab9d7064dbd619c4198537f9a5d727604 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | nocb: Remove show_rcu_nocb_state() false positive printout (diff) | |
download | wireguard-linux-b5374b2df0ac1c78895b8eb8d9582a7bdc67257d.tar.xz wireguard-linux-b5374b2df0ac1c78895b8eb8d9582a7bdc67257d.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions