Thread (36 messages) 36 messages, 12 authors, 2024-11-17

Re: [PATCH 02/17] ipv4: replace call_rcu by kfree_rcu for simple kmem_cache_free callback

From: Eric Dumazet <edumazet@google.com>
Date: 2024-10-14 07:42:13
Also in: kernel-janitors, lkml

On Sun, Oct 13, 2024 at 10:18 PM Julia Lawall [off-list ref] wrote:
Since SLOB was removed and since
commit 6c6c47b063b5 ("mm, slab: call kvfree_rcu_barrier() from kmem_cache_destroy()"),
it is not necessary to use call_rcu when the callback only performs
kmem_cache_free. Use kfree_rcu() directly.

The changes were made using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Note that fn_alias_kmem is never destroyed, so commit 6c6c47b063b5
seems not relevant.

Reviewed-by: Eric Dumazet <edumazet@google.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help