On Mon, Oct 21, 2024 at 10:10:02AM -0700, Suren Baghdasaryan wrote:
From: "Uladzislau Rezki (Sony)" urezki@gmail.com
From: Uladzislau Rezki urezki@gmail.com
commit 3c5d61ae919cc377c71118ccc76fa6e8518023f8 upstream.
Add a kvfree_rcu_barrier() function. It waits until all in-flight pointers are freed over RCU machinery. It does not wait any GP completion and it is within its right to return immediately if there are no outstanding pointers.
This function is useful when there is a need to guarantee that a memory is fully freed before destroying memory caches. For example, during unloading a kernel module.
Signed-off-by: Uladzislau Rezki (Sony) urezki@gmail.com Signed-off-by: Vlastimil Babka vbabka@suse.cz
include/linux/rcutiny.h | 5 ++ include/linux/rcutree.h | 1 + kernel/rcu/tree.c | 109 +++++++++++++++++++++++++++++++++++++--- 3 files changed, 107 insertions(+), 8 deletions(-)
We need a signed-off-by line from you, as you did the backport here, please fix that up and resend this series.
thanks,
greg k-h