On Mon, 27 May 2024, Vlastimil Babka wrote: > 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. Thanks for the suggestion! I will try to look into it. julia
- patch idea: convert trivial call_rcu users to kfree_rcu Vlastimil Babka
- Re: [cocci] patch idea: convert trivial call_rcu use... Julia Lawall
- Re: [cocci] patch idea: convert trivial call_rcu... Paul E. McKenney
- Re: [cocci] patch idea: convert trivial call... Uladzislau Rezki
- Re: [cocci] patch idea: convert trivial ... Julia Lawall
- Re: [cocci] patch idea: convert tri... Uladzislau Rezki
- Re: [cocci] patch idea: convert trivial call... Julia Lawall
- Re: [cocci] patch idea: convert trivial ... Paul E. McKenney
- Re: [cocci] patch idea: convert tri... Julia Lawall
- Re: [cocci] patch idea: convert trivial ... Uladzislau Rezki
- Re: [cocci] patch idea: convert tri... Julia Lawall
- Re: [cocci] patch idea: convert... Uladzislau Rezki
