diff options
author | Frederic Weisbecker <[email protected]> | 2023-03-29 18:02:02 +0200 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2023-05-09 17:26:59 -0700 |
commit | b96a8b0b5be40f9bc9e45819f14b32ea9cdce73f (patch) | |
tree | c9025e181cc3904376f20d24fdbfdacb7e700bd7 /lib/mpi/mpi-sub-ui.c | |
parent | 7625926086765123251f765d91fc3a70617d334d (diff) |
rcu/nocb: Recheck lazy callbacks under the ->nocb_lock from shrinker
The ->lazy_len is only checked locklessly. Recheck again under the
->nocb_lock to avoid spending more time on flushing/waking if not
necessary. The ->lazy_len can still increment concurrently (from 1 to
infinity) but under the ->nocb_lock we at least know for sure if there
are lazy callbacks at all (->lazy_len > 0).
Signed-off-by: Frederic Weisbecker <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions