Re: [PATCH RFC 1/5] mm/slab: cleanup deferred free handling

Hao Li <[email protected]>
Newsgroups dev.linux.lists.linux-rt-devel,org.freedesktop.lists.dri-devel,org.kernel.vger.bpf,org.kernel.vger.linux-kernel,org.kernel.vger.linux-media,org.kvack.linux-mm
Message-ID <aoPN2evd_u09IxfR@fedora>
On Fri, Aug 07, 2026 at 03:50:27PM +0200, Vlastimil Babka (SUSE) wrote:
> In deferred_percpu_work_fn() we have a bunch of single-use local
> variables for the various llists. Remove them and access the lists
> directly.
> 
> In defer_free() make it more obvious and documented what we are doing.
> Also restrict guard(preempt) to only the necessary part.
> 
> Signed-off-by: Vlastimil Babka (SUSE) <[email protected]>
> ---
>  mm/slub.c | 24 +++++++++++++-----------
>  1 file changed, 13 insertions(+), 11 deletions(-)

Looks much cleaner now.
Reviewed-by: Hao Li <[email protected]>

-- 
Thanks,
Hao
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.