Re: [PATCH v2] rcu/kvfree: Add kvfree_rcu_barrier() API

From: Uladzislau Rezki
Date: Thu Aug 22 2024 - 08:04:27 EST


On Wed, Aug 21, 2024 at 08:06:08PM +0200, Vlastimil Babka wrote:
> On 8/20/24 5:59 PM, Uladzislau Rezki (Sony) wrote:
> > 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@xxxxxxxxx>
> > Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx>
>
> Thanks Ulad, replaced the patch in slab/for-next
>
You are welcome :)

--
Uladzislau Rezki