linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* patch idea: convert trivial call_rcu users to kfree_rcu
@ 2024-05-27  7:46 Vlastimil Babka
  2024-05-27  8:13 ` [cocci] " Julia Lawall
  0 siblings, 1 reply; 24+ messages in thread
From: Vlastimil Babka @ 2024-05-27  7:46 UTC (permalink / raw)
  To: linux-mm, RCU, cocci

Hi,

one bit from LSF/MM discussions is that there might be call_rcu users with a
callback that only does a kmem_cache_free() to a specific cache. Since SLOB
was removed, it's always ok to use kfree() and thus also kfree_rcu() on
allocations from kmem_cache_alloc() in addition to kmalloc(). Thus, such
call_rcu() users might be simplified to kfree_rcu(). I found some cases
semi-manually, but I'd expect coccinelle could help here so if anyone wants
to take this task, feel free to.

Vlastimil




^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-06-11 17:27 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-27  7:46 patch idea: convert trivial call_rcu users to kfree_rcu Vlastimil Babka
2024-05-27  8:13 ` [cocci] " Julia Lawall
2024-05-27 19:27   ` Paul E. McKenney
2024-05-27 19:46     ` Uladzislau Rezki
2024-05-27 19:51       ` Julia Lawall
2024-05-27 20:36         ` Uladzislau Rezki
2024-05-27 20:43     ` Julia Lawall
2024-05-27 21:48       ` Paul E. McKenney
2024-05-28  5:09         ` Julia Lawall
2024-05-28 12:03       ` Uladzislau Rezki
2024-05-28 12:08         ` Julia Lawall
2024-05-28 13:21           ` Uladzislau Rezki
2024-05-28 14:29             ` Paul E. McKenney
2024-05-31 16:02               ` Julia Lawall
2024-06-03 17:25                 ` Paul E. McKenney
2024-06-03 19:29                 ` Vlastimil Babka
2024-06-03 19:51                   ` Julia Lawall
2024-06-04 11:26                 ` Uladzislau Rezki
2024-06-09  8:32                   ` Julia Lawall
2024-06-09 10:00                   ` Julia Lawall
2024-06-09 17:03                     ` Paul E. McKenney
2024-06-11 16:40                       ` Uladzislau Rezki
2024-06-11 17:25                         ` Paul E. McKenney
2024-06-11 17:27                           ` Uladzislau Rezki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox