summaryrefslogtreecommitdiff
path: root/kernel/cpu.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-10-18 04:55:36 -0700
committerBen Hutchings <ben@decadent.org.uk>2013-01-03 03:33:08 +0000
commit442a9939793874e5f5b9f0c58564dfdbc162cfd3 (patch)
tree2051e60018878ebc3e42a73b854f219f78b4bc56 /kernel/cpu.c
parentfc5884d265e78f15915f650585cfb28c9aa5aca6 (diff)
rcu: Fix batch-limit size problem
commit 878d7439d0f45a95869e417576774673d1fa243f upstream. Commit 29c00b4a1d9e27 (rcu: Add event-tracing for RCU callback invocation) added a regression in rcu_do_batch() Under stress, RCU is supposed to allow to process all items in queue, instead of a batch of 10 items (blimit), but an integer overflow makes the effective limit being 1. So, unless there is frequent idle periods (during which RCU ignores batch limits), RCU can be forced into a state where it cannot keep up with the callback-generation rate, eventually resulting in OOM. This commit therefore converts a few variables in rcu_do_batch() from int to long to fix this problem, along with the module parameters controlling the batch limits. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> [bwh: Backported to 3.2: - Adjust context - Module parameters remain hidden from sysfs] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'kernel/cpu.c')
0 files changed, 0 insertions, 0 deletions