summaryrefslogtreecommitdiffstats
path: root/Documentation/RCU
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-10-22 23:51:49 +0200
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-11-04 04:21:01 +0100
commit62db99f4783ea34531fc344bd8c539d5d186f24d (patch)
tree71b90af82e70ea33e05455bf1e6d93cec77ea79e /Documentation/RCU
parentrcu: Remove "cpu" argument to rcu_cleanup_after_idle() (diff)
downloadlinux-62db99f4783ea34531fc344bd8c539d5d186f24d.tar.xz
linux-62db99f4783ea34531fc344bd8c539d5d186f24d.zip
cpu: Avoid puts_pending overflow
A long string of get_online_cpus() with each followed by a put_online_cpu() that fails to acquire cpu_hotplug.lock can result in overflow of the cpu_hotplug.puts_pending counter. Although this is perhaps improbably, a system with absolutely no CPU-hotplug operations will have an arbitrarily long time in which this overflow could occur. This commit therefore adds overflow checks to get_online_cpus() and try_get_online_cpus(). Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
Diffstat (limited to 'Documentation/RCU')
0 files changed, 0 insertions, 0 deletions