diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2020-06-23 17:09:27 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-08-24 18:36:06 -0700 |
commit | b5374b2df0ac1c78895b8eb8d9582a7bdc67257d (patch) | |
tree | fe85aaaab9d7064dbd619c4198537f9a5d727604 /lib/mpi/mpiutil.c | |
parent | 2130c6b4f610ea65e9df71dfa79ee08f2fc17743 (diff) |
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 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions