From: "Zqiang" <qiang.zhang@linux.dev>
To: "Breno Leitao" <leitao@debian.org>
Cc: paulmck@kernel.org, frederic@kernel.org,
neeraj.upadhyay@kernel.org, joelagnelf@nvidia.com,
urezki@gmail.com, boqun@kernel.org, rcu@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] srcu: Queue sdp->work when the delay timer is successfully deleted
Date: Tue, 04 Aug 2026 21:58:52 +0000 [thread overview]
Message-ID: <01484cd339ea024dd7c01f02a9781f00e67cb52d@linux.dev> (raw)
In-Reply-To: <anGc7qa8fzrDf7dp@gmail.com>
>
> On Mon, Aug 03, 2026 at 11:40:14PM +0000, Zqiang wrote:
>
> >
> > diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c
> > index b9fe57ff9100..d13c12f61150 100644
> > --- a/kernel/rcu/srcutree.c
> > +++ b/kernel/rcu/srcutree.c
> > @@ -751,8 +751,9 @@ void cleanup_srcu_struct(struct srcu_struct *ssp)
> >
> > // Call srcu_barrier() before this cleanup_srcu_struct()
> > // to avoid triggering this WARN_ON().
> > - if (WARN_ON(timer_delete_sync(&sdp->delay_work)) &&
> > - rcu_cpu_beenfullyonline(sdp->cpu))
> > + if (WARN_ON(timer_delete_sync(&sdp->delay_work) &&
> > + rcu_segcblist_n_cbs(&sdp->srcu_cblist)) &&
> > + rcu_cpu_beenfullyonline(sdp->cpu))
> >
> Isn't the WARN_ON() the same? thus it will hit again?
WARN_ON(timer_delete_sync(&sdp->delay_work) && rcu_segcblist_n_cbs(&sdp->srcu_cblist))
Thanks
Zqiang
>
prev parent reply other threads:[~2026-08-04 21:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 10:06 [PATCH] srcu: Queue sdp->work when the delay timer is successfully deleted Zqiang
2026-07-10 18:34 ` Paul E. McKenney
2026-07-31 17:45 ` Breno Leitao
2026-08-01 5:19 ` Zqiang
2026-08-03 10:49 ` Breno Leitao
2026-08-03 14:11 ` Zqiang
2026-08-03 14:37 ` Zqiang
2026-08-03 23:40 ` Zqiang
2026-08-04 8:04 ` Breno Leitao
2026-08-04 21:58 ` Zqiang [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=01484cd339ea024dd7c01f02a9781f00e67cb52d@linux.dev \
--to=qiang.zhang@linux.dev \
--cc=boqun@kernel.org \
--cc=frederic@kernel.org \
--cc=joelagnelf@nvidia.com \
--cc=leitao@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neeraj.upadhyay@kernel.org \
--cc=paulmck@kernel.org \
--cc=rcu@vger.kernel.org \
--cc=urezki@gmail.com \
/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