Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

From: Vlastimil Babka
Date: Sat Jan 11 2025 - 14:40:20 EST


On 12/16/24 14:07, Uladzislau Rezki wrote:
> On Sun, Dec 15, 2024 at 06:30:02PM +0100, Vlastimil Babka wrote:
>> On 12/12/24 19:02, Uladzislau Rezki (Sony) wrote:
>> > Hello!
>> >
>> > This is v2. It is based on the Linux 6.13-rc2. The first version is
>> > here:
>> >
>> > https://lore.kernel.org/linux-mm/20241210164035.3391747-4-urezki@xxxxxxxxx/T/
>> >
>> > The difference between v1 and v2 is that, the preparation process is
>> > done in original place instead and after that there is one final move.
>>
>> Looks good, will include in slab/for-next
>>
>> I think patch 5 should add more explanation to the commit message - the
>> subthread started by Christoph could provide content :) Can you summarize so
>> I can amend the commit log?
>>
> <snip>
> mm/slab: Move kvfree_rcu() into SLAB
>
> Move kvfree_rcu() functionality to the slab_common.c file.
>
> The reason of being kvfree_rcu() functionality as part of SLAB is
> that, there is a clear trend and need of closer integration. One
> of the recent example is creating a barrier function for SLAB caches.
>
> Another reason is to prevent of having several implementations of
> RCU machinery for reclaiming objects after a GP. As future steps,
> it can be more integrated(easier) with SLAB internals.
> <snip>

Thanks, amended.

> --
> Uladzislau Rezki