From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Jens Axboe <axboe@kernel.dk>,
Peter Zijlstra <peterz@infradead.org>,
Daniel Wagner <wagi@monom.org>,
Thomas Gleixner <tglx@linutronix.de>,
LKML <linux-kernel@vger.kernel.org>,
linux-rt-users@vger.kernel.org
Subject: Re: [ANNOUNCE] v5.14-rc4-rt4
Date: Wed, 4 Aug 2021 18:57:51 +0200 [thread overview]
Message-ID: <20210804165751.ifppsn3eqjnvfgqs@linutronix.de> (raw)
In-Reply-To: <20210804124755.21ca7e3d@oasis.local.home>
On 2021-08-04 12:47:55 [-0400], Steven Rostedt wrote:
> On Wed, 4 Aug 2021 18:31:19 +0200
> Sebastian Andrzej Siewior <bigeasy@linutronix.de> wrote:
>
> > CPU-local wake-ups just set NEED_RESCHED and wait for preempt_enable()
> > to do the magic. Just because the code not perform wake_up() now does
> > not mean it will not do so in the future. Also it is here as an example
> > which might be copied somewhere else.
>
> Does this mean all local_irq_disable/enable() is audited? What do you do for;
>
> local_irq_disable();
> [..]
> wakeup_process(x); /* on local CPU */
> [..]
> local_irq_enable();
I hunted and fixed a few of those. I still have few
preempt_check_resched_rt() which I want fix other than what is in RT.
> And if local_irq_disable() is not used anymore, or seldom, what harm
> would it be to add a preemption check to that caller? And change
> local_irq_enable() that is used internally by other atom functions be
> called __local_irq_enable()?
>
> Not to mention that we could just open code that too:
>
> if (IS_ENABLED(CONFIG_PREEMPT_RT)) {
> local_irq_enable();
> preempt_check_resched();
> }
>
> And make it ugly enough that nobody will want to copy it :-)
I remember that the amount of enthusiasm was quite low when it was
suggested that local_irq_enable() gets additionally the preempt-check.
Maybe was due to the people involved :)
But we managed to work around it for most callers. Therefore we I
wouldn't suggest local_irq_disable_rt(). We had it in -RT, we had a
bunch of users and all of them were fixed in a different way.
Same goes btw. for preempt_disable_rt() which has been reduced to vmstat
and had previously more users :)
> -- Steve
Sebastian
prev parent reply other threads:[~2021-08-04 16:57 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-02 16:27 Sebastian Andrzej Siewior
2021-08-04 8:24 ` Daniel Wagner
2021-08-04 10:43 ` Sebastian Andrzej Siewior
2021-08-04 10:48 ` Sebastian Andrzej Siewior
2021-08-04 11:00 ` Sebastian Andrzej Siewior
2021-08-04 13:17 ` Peter Zijlstra
2021-08-04 13:32 ` Jens Axboe
2021-08-04 14:23 ` Jens Axboe
2021-08-04 15:33 ` Sebastian Andrzej Siewior
2021-08-04 15:39 ` Jens Axboe
2021-08-04 15:47 ` Sebastian Andrzej Siewior
2021-08-04 15:49 ` Jens Axboe
2021-08-04 15:57 ` Sebastian Andrzej Siewior
2021-08-04 16:05 ` Jens Axboe
2021-08-04 16:20 ` Sebastian Andrzej Siewior
2021-08-04 16:20 ` Jens Axboe
2021-08-04 16:20 ` Steven Rostedt
2021-08-04 16:22 ` Jens Axboe
2021-08-04 16:47 ` Sebastian Andrzej Siewior
2021-08-04 16:57 ` Jens Axboe
2021-08-04 17:02 ` Sebastian Andrzej Siewior
2021-08-10 7:40 ` Sebastian Andrzej Siewior
2021-08-10 11:22 ` [PATCH] io-wq: remove GFP_ATOMIC allocation off schedule out path kernel test robot
2021-08-10 15:22 ` kernel test robot
2021-08-04 16:17 ` [ANNOUNCE] v5.14-rc4-rt4 Steven Rostedt
2021-08-04 16:22 ` Sebastian Andrzej Siewior
2021-08-04 16:25 ` Steven Rostedt
2021-08-04 16:31 ` Sebastian Andrzej Siewior
2021-08-04 16:47 ` Steven Rostedt
2021-08-04 16:57 ` Sebastian Andrzej Siewior [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=20210804165751.ifppsn3eqjnvfgqs@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=axboe@kernel.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=wagi@monom.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®