summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-06-24 03:49:40 +0300
committerPaul E. McKenney <paulmck@kernel.org>2020-08-25 04:36:07 +0300
commita2b354b9950bb859d8d959f951dda26725b041fb (patch)
treea262cadd8ed9ef7492dfd22f02d5bd48db0d7e73 /scripts/gdb/linux/proc.py
parentb5374b2df0ac1c78895b8eb8d9582a7bdc67257d (diff)
downloadlinux-a2b354b9950bb859d8d959f951dda26725b041fb.tar.xz
rcu: Add READ_ONCE() to rcu_do_batch() access to rcu_resched_ns
Given that sysfs can change the value of rcu_resched_ns 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 at least a millisecond, but no longer than a second. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions