* [ANNOUNCE] 4.14.87-rt49
@ 2018-12-18 20:40 Steven Rostedt
2018-12-18 22:08 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2018-12-18 20:40 UTC (permalink / raw)
To: LKML, linux-rt-users
Cc: Thomas Gleixner, Carsten Emde, John Kacur,
Sebastian Andrzej Siewior, Julia Cartwright, Daniel Wagner,
Tom Zanussi
Dear RT Folks,
I'm pleased to announce the 4.14.87-rt49 stable release.
Sorry for taking so long, I've just been swamped (like everyone else)
*** PLEASE NOTE ***
This release is **NOT** just an update to the new stable 4.14.87 version
as there was a small RT specific change that has been made.
I had to make an update to handle a backport of adding
preempt_disable() around the console_unlock() code. That patch is below.
You can get this release via the git tree at:
git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git
branch: v4.14-rt
Head SHA1: c3fb62599cb0bf9ea0223433ccf7c0c37056c392
Or to build 4.14.87-rt49 directly, the following patches should be applied:
http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.14.tar.xz
http://www.kernel.org/pub/linux/kernel/v4.x/patch-4.14.87.xz
http://www.kernel.org/pub/linux/kernel/projects/rt/4.14/patch-4.14.87-rt49.patch.xz
Enjoy,
-- Steve
From 0ab3459b0a8b8d19054aa813611c8dc22ce04af8 Mon Sep 17 00:00:00 2001
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
Date: Fri, 14 Dec 2018 21:36:55 -0500
Subject: [PATCH] printk: Do not disable preemption when calling consoles in RT
console_unlock() may call consoles that call spin_lock(), where spin_lock is
a mutex in PREEMPT_RT. Although mainline may be worried about preempted
holders of the console lock from preventing printk() output, the RT kernel
does not.
Use migrate_disable() to disable preemption when !RT, but we really don't
care if the task stays on the CPU or not for RT. It just has to be able to
schedule.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
kernel/printk/printk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 8a7c4f79fca0..029ae3caa80e 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -1811,7 +1811,7 @@ asmlinkage int vprintk_emit(int facility, int level,
* console_sem which would prevent anyone from printing to
* console
*/
- preempt_disable();
+ migrate_disable();
/*
* Try to acquire and then immediately release the console
* semaphore. The release will print out buffers and wake up
@@ -1819,7 +1819,7 @@ asmlinkage int vprintk_emit(int facility, int level,
*/
if (may_trylock && console_trylock())
console_unlock();
- preempt_enable();
+ migrate_enable();
}
return printed_len;
--
2.19.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ANNOUNCE] 4.14.87-rt49
2018-12-18 20:40 [ANNOUNCE] 4.14.87-rt49 Steven Rostedt
@ 2018-12-18 22:08 ` Sebastian Andrzej Siewior
2018-12-18 22:14 ` Steven Rostedt
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2018-12-18 22:08 UTC (permalink / raw)
To: Steven Rostedt
Cc: LKML, linux-rt-users, Thomas Gleixner, Carsten Emde, John Kacur,
Julia Cartwright, Daniel Wagner, Tom Zanussi
On 2018-12-18 15:40:34 [-0500], Steven Rostedt wrote:
>
> Dear RT Folks,
>
> I'm pleased to announce the 4.14.87-rt49 stable release.
This contains also commit
e8499ab5b93ac ("x86/fpu: Disable bottom halves while loading FPU registers")
which means you need commit
[PATCH] x86/fpu: Disable preemption around local_bh_disable()
https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/plain/patches/x86-fpu-Disable-preemption-around-local_bh_disable.patch?h=linux-4.19.y-rt-patches
Sebastian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ANNOUNCE] 4.14.87-rt49
2018-12-18 22:08 ` Sebastian Andrzej Siewior
@ 2018-12-18 22:14 ` Steven Rostedt
0 siblings, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2018-12-18 22:14 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: LKML, linux-rt-users, Thomas Gleixner, Carsten Emde, John Kacur,
Julia Cartwright, Daniel Wagner, Tom Zanussi
On Tue, 18 Dec 2018 23:08:36 +0100
Sebastian Andrzej Siewior <bigeasy@linutronix.de> wrote:
> On 2018-12-18 15:40:34 [-0500], Steven Rostedt wrote:
> >
> > Dear RT Folks,
> >
> > I'm pleased to announce the 4.14.87-rt49 stable release.
>
> This contains also commit
> e8499ab5b93ac ("x86/fpu: Disable bottom halves while loading FPU registers")
>
> which means you need commit
> [PATCH] x86/fpu: Disable preemption around local_bh_disable()
> https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/plain/patches/x86-fpu-Disable-preemption-around-local_bh_disable.patch?h=linux-4.19.y-rt-patches
>
I plan on doing a backport soon. My tests didn't bomb without this
patch :-) so i released this stable. But this just shows I need to do a
backport of your updates ASAP.
-- Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-18 22:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-18 20:40 [ANNOUNCE] 4.14.87-rt49 Steven Rostedt
2018-12-18 22:08 ` Sebastian Andrzej Siewior
2018-12-18 22:14 ` Steven Rostedt
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®