diff options
author | Eric Dumazet <edumazet@google.com> | 2012-10-18 04:55:36 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-11-13 14:07:57 -0800 |
commit | 878d7439d0f45a95869e417576774673d1fa243f (patch) | |
tree | bf16331cb2e31ab00fe69d91755b7ac6ccb6a7d6 /firmware | |
parent | 62da1921292ef789c23a7bf01d671d7572baf377 (diff) | |
download | op-kernel-dev-878d7439d0f45a95869e417576774673d1fa243f.zip op-kernel-dev-878d7439d0f45a95869e417576774673d1fa243f.tar.gz |
rcu: Fix batch-limit size problem
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>
Cc: <stable@vger.kernel.org> # 3.2 +
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions