Linux RCU subsystem development
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Frederic Weisbecker <frederic@kernel.org>,
	rcu@vger.kernel.org, linux-rt-devel@lists.linux.dev,
	Lai Jiangshan <jiangshanlai@gmail.com>,
	"Paul E. McKenney" <paulmck@kernel.org>,
	Josh Triplett <josh@joshtriplett.org>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	Clark Williams <clrkwllms@kernel.org>
Subject: Re: [PATCH] rcu: Use IRQ_WORK_INIT_HARD for srcu's irq_work
Date: Fri, 21 Aug 2026 12:44:12 -0400	[thread overview]
Message-ID: <20260821124412.3b2e49c2@fedora> (raw)
In-Reply-To: <20260821110108.kAu0wszk@linutronix.de>

On Fri, 21 Aug 2026 13:01:08 +0200
Sebastian Andrzej Siewior <bigeasy@linutronix.de> wrote:

> > > > > > +	ssp->srcu_sup->irq_work = IRQ_WORK_INIT_HARD(srcu_irq_work);    
> > > > > 
> > > > > It may need a comment to not lose that.    
> > > 
> > > I agree a comment would be useful here.  
> > Urgh.  
> 
> What do you want me to cover in the comment? The arguing pro
> IRQ_WORK_INIT_HARD is because it is "just" a workqueue schedule and it
> avoids the jump over irq_work/ thread. This makes sense regardless of
> the tracing issue.
> If it would be not compatible with hard-irq context I would argue for
> the makefile change which is still sane since there is no other way to
> express dependencies (which we clearly have here).

Basically just a word to why it is HARD.

 	atomic_set(&ssp->srcu_sup->srcu_barrier_cpu_cnt, 0);
 	INIT_DELAYED_WORK(&ssp->srcu_sup->work, process_srcu);
-	init_irq_work(&ssp->srcu_sup->irq_work, srcu_irq_work);
+	/*
+	 * trace events started on the command line require SRCU before
+	 * the irq_work kthread starts. Since all it does is a simple
+	 * wakeup, having it as a hard irq, even on PREEMPT_RT is fine.
+	 */
+	ssp->srcu_sup->irq_work = IRQ_WORK_INIT_HARD(srcu_irq_work);
 	ssp->srcu_sup->sda_is_static = is_static;

-- Steve

  reply	other threads:[~2026-08-21 16:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-20 11:00 [PATCH] rcu: Use IRQ_WORK_INIT_HARD for srcu's irq_work Sebastian Andrzej Siewior
2026-08-20 12:40 ` Frederic Weisbecker
2026-08-20 13:55   ` Sebastian Andrzej Siewior
2026-08-20 17:00     ` Steven Rostedt
2026-08-21 10:04       ` Sebastian Andrzej Siewior
2026-08-21 11:01         ` Sebastian Andrzej Siewior
2026-08-21 16:44           ` Steven Rostedt [this message]
2026-08-20 22:59     ` Frederic Weisbecker
2026-08-21 10:21       ` Sebastian Andrzej Siewior

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=20260821124412.3b2e49c2@fedora \
    --to=rostedt@goodmis.org \
    --cc=bigeasy@linutronix.de \
    --cc=clrkwllms@kernel.org \
    --cc=frederic@kernel.org \
    --cc=jiangshanlai@gmail.com \
    --cc=josh@joshtriplett.org \
    --cc=linux-rt-devel@lists.linux.dev \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=paulmck@kernel.org \
    --cc=rcu@vger.kernel.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