From: Peter Zijlstra <peterz@infradead.org>
To: Ran Xiaokai <ranxiaokai627@163.com>
Cc: juri.lelli@redhat.com, vincent.guittot@linaro.org,
mingo@redhat.com, pshelar@ovn.org, davem@davemloft.net,
linux-kernel@vger.kernel.org, ran.xiaokai@zte.com.cn,
linux-perf-users@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH 2/4] perf/core: convert call_rcu(free_ctx) to kfree_rcu()
Date: Wed, 20 Nov 2024 10:16:22 +0100 [thread overview]
Message-ID: <20241120091622.GK38972@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <20241120091215.GK39245@noisy.programming.kicks-ass.net>
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@zte.com.cn>
> >
> > 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 :-(
next prev parent reply other threads:[~2024-11-20 9:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-20 6:47 [PATCH 0/4] Convert some simple call_rcu() to kfree_rcu()/kvfree_rcu() Ran Xiaokai
2024-11-20 6:47 ` [PATCH 1/4] sched/topology: convert call_rcu(free_ctx) to kfree_rcu() Ran Xiaokai
2024-11-20 6:47 ` [PATCH 2/4] perf/core: " Ran Xiaokai
2024-11-20 9:12 ` Peter Zijlstra
2024-11-20 9:16 ` Peter Zijlstra [this message]
2024-11-21 6:54 ` Ran Xiaokai
2024-11-20 6:47 ` [PATCH 3/4] net: openvswitch: convert call_rcu(dp_meter_instance_free_rcu) to kvfree_rcu() Ran Xiaokai
2024-11-21 8:37 ` Paolo Abeni
2024-11-20 6:47 ` [PATCH 4/4] net: sysfs: convert call_rcu() " Ran Xiaokai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241120091622.GK38972@noisy.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=davem@davemloft.net \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pshelar@ovn.org \
--cc=ran.xiaokai@zte.com.cn \
--cc=ranxiaokai627@163.com \
--cc=vincent.guittot@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®