diff options
author | Joel Fernandes (Google) <joel@joelfernandes.org> | 2020-03-16 17:32:28 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-04-27 20:02:50 +0200 |
commit | a6a82ce18ba443186545d3fefbee8b9419a859dc (patch) | |
tree | ab1829c8e55a433ebd52e812da3f34462a9bc39f /kernel/rcu/tree_stall.h | |
parent | rcu/tree: Add a shrinker to prevent OOM due to kfree_rcu() batching (diff) | |
download | linux-a6a82ce18ba443186545d3fefbee8b9419a859dc.tar.xz linux-a6a82ce18ba443186545d3fefbee8b9419a859dc.zip |
rcu/tree: Count number of batched kfree_rcu() locklessly
We can relax the correctness of counting of number of queued objects in
favor of not hurting performance, by locklessly sampling per-cpu
counters. This should be Ok since under high memory pressure, it should not
matter if we are off by a few objects while counting. The shrinker will
still do the reclaim.
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
[ paulmck: Remove unused "flags" variable. ]
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree_stall.h')
0 files changed, 0 insertions, 0 deletions