From: Yang Jihong <yangjihong1@huawei.com>
To: <paulmck@kernel.org>
Cc: Chen Zhongjin <chenzhongjin@huawei.com>,
<linux-kernel@vger.kernel.org>,
<linux-trace-kernel@vger.kernel.org>,
<naveen.n.rao@linux.ibm.com>, <anil.s.keshavamurthy@intel.com>,
<davem@davemloft.net>, <mhiramat@kernel.org>,
<akpm@linux-foundation.org>, <tglx@linutronix.de>,
<peterz@infradead.org>, <pmladek@suse.com>,
<dianders@chromium.org>, <npiggin@gmail.com>,
<mpe@ellerman.id.au>, <jkl820.git@gmail.com>,
<juerg.haefliger@canonical.com>, <rick.p.edgecombe@intel.com>,
<eric.devolder@oracle.com>, <mic@digikod.net>
Subject: Re: [RFC PATCH] kprobes: Use synchronize_rcu_tasks_rude in kprobe_optimizer
Date: Sun, 4 Feb 2024 09:16:36 +0800 [thread overview]
Message-ID: <bbeebd04-f8c2-866b-0016-79778c64cab8@huawei.com> (raw)
In-Reply-To: <d970cda7-bf17-49c5-85b9-7596beb3690b@paulmck-laptop>
Hello,
On 2024/2/4 6:00, Paul E. McKenney wrote:
> On Mon, Jan 29, 2024 at 08:58:10AM +0800, Yang Jihong wrote:
>> Hello,
>>
>> On 2024/1/28 3:22, Paul E. McKenney wrote:
>>> On Tue, Jan 09, 2024 at 07:28:29PM +0800, Yang Jihong wrote:
>>>> Hello,
>>>>
>>>> PING.
>>>>
>>>> I had a similar problem. Is this solution feasible?
>>>
>>> Sadly, no.
>>>
>>> It fails on CONFIG_PREEMPT=y kernels because synchronize_rcu_tasks_rude()
>>> will not wait on tasks that have been preempted while executing in
>>> a trampoline.
>>>
>>> But could you please try out the patch shown at the end of this email?
>>
>> Thanks for the patch, yes, I've tested and it solves the problem.
>
> Very good, and thank you for testing it!
>
> May I apply your Tested-by to the commit to record your efforts for
> posterity?
>
Sure absolutely.
Tested-by: Yang Jihong <yangjihong1@huawei.com>
Thanks,
Yang
prev parent reply other threads:[~2024-02-04 1:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-02 3:40 Chen Zhongjin
2024-01-09 11:28 ` Yang Jihong
2024-01-27 19:22 ` Paul E. McKenney
2024-01-29 0:58 ` Yang Jihong
2024-02-03 22:00 ` Paul E. McKenney
2024-02-04 1:16 ` Yang Jihong [this message]
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=bbeebd04-f8c2-866b-0016-79778c64cab8@huawei.com \
--to=yangjihong1@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=anil.s.keshavamurthy@intel.com \
--cc=chenzhongjin@huawei.com \
--cc=davem@davemloft.net \
--cc=dianders@chromium.org \
--cc=eric.devolder@oracle.com \
--cc=jkl820.git@gmail.com \
--cc=juerg.haefliger@canonical.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=mic@digikod.net \
--cc=mpe@ellerman.id.au \
--cc=naveen.n.rao@linux.ibm.com \
--cc=npiggin@gmail.com \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=pmladek@suse.com \
--cc=rick.p.edgecombe@intel.com \
--cc=tglx@linutronix.de \
/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®