Re: [PATCH 2/4] perf/core: convert call_rcu(free_ctx) to kfree_rcu()

From: Peter Zijlstra
Date: Wed Nov 20 2024 - 04:19:13 EST


On Wed, Nov 20, 2024 at 10:12:15AM +0100, Peter Zijlstra wrote:
> On Wed, Nov 20, 2024 at 06:47:14AM +0000, Ran Xiaokai wrote:
> > From: Ran Xiaokai <ran.xiaokai@xxxxxxxxxx>
> >
> > The rcu callback free_ctx() simply calls kfree().
> > It's better to directly call kfree_rcu().
>
> Why is it better?

*sigh*, also please don't cross post with a moderated list :-(