diff options
author | Uladzislau Rezki (Sony) <urezki@gmail.com> | 2022-12-14 13:06:30 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-01-03 17:48:41 -0800 |
commit | 2ca836b1da1777c75b7363a7ca2973e8ab11fc21 (patch) | |
tree | 7d695f36968d81f1c45b9eea84ba491ac68b36e7 /include/linux/fpga/fpga-mgr.h | |
parent | 4c33464ae85e59cba3f8048a34d571edf229823a (diff) |
rcu/kvfree: Split ready for reclaim objects from a batch
This patch splits the lists of objects so as to avoid sending any
through RCU that have already been queued for more than one grace
period. These long-term-resident objects are immediately freed.
The remaining short-term-resident objects are queued for later freeing
using queue_rcu_work().
This change avoids delaying workqueue handlers with synchronize_rcu()
invocations. Yes, workqueue handlers are designed to handle blocking,
but avoiding blocking when unnecessary improves performance during
low-memory situations.
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions