5.4.82-rt46
Subsystems (4)
Dear RT Folks,
I'm pleased to announce the 5.4.82-rt46 stable release.
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: v5.4-rt
Head SHA1: 2cb0daa9d528e36f026b0c60e7eb881d2282462a
Or to build 5.4.82-rt46 directly, the following patches should be applied:
http://www.kernel.org/pub/linux/kernel/v5.x/linux-5.4.tar.xz
http://www.kernel.org/pub/linux/kernel/v5.x/patch-5.4.82.xz
http://www.kernel.org/pub/linux/kernel/projects/rt/5.4/patch-5.4.82-rt46.patch.xz
You can also build from 5.4.82-rt45 by applying the incremental patch:
http://www.kernel.org/pub/linux/kernel/projects/rt/5.4/incr/patch-5.4.82-rt45-rt46.patch.xz
Enjoy,
-- Steve
Changes from v5.4.82-rt45:
---
Sebastian Andrzej Siewior (1):
Revert "hrtimer: Allow raw wakeups during boot"
Steven Rostedt (VMware) (2):
Revert "net: Properly annotate the try-lock for the seqlock" Linux 5.4.82-rt46
Thomas Gleixner (1):
timers: Move clearing of base::timer_running under base::lock
Zanxiong Qiu (1):
mm/swap: use local lock in deactivate_page()
----
include/linux/seqlock.h | 9 +++++++++ include/net/sch_generic.h | 10 +--------- kernel/time/hrtimer.c | 2 +- kernel/time/timer.c | 6 ++++-- localversion-rt | 2 +- mm/swap.c | 5 +++-- 6 files changed, 19 insertions(+), 15 deletions(-)
---------------------------
include/linux/seqlock.h +9 -0
@@ -489,6 +489,15 @@ static inline void write_seqlock(seqlock_t *sl)__raw_write_seqcount_begin (&sl->seqcount); } +static inline int try_write_seqlock (seqlock_t *sl) +{ +if (spin_trylock (&sl->lock)) { +__raw_write_seqcount_begin (&sl->seqcount); +return 1 ; + } +return 0 ; +} +static inline void write_sequnlock (seqlock_t *sl) {__raw_write_seqcount_end (&sl->seqcount);
include/net/sch_generic.h +1 -9
@@ -168,16 +168,8 @@ static inline bool qdisc_run_begin(struct Qdisc *qdisc)return false; }#ifdef CONFIG_PREEMPT_RT -if (spin_trylock (&qdisc->running.lock)) { -seqcount_t *s = &qdisc->running.seqcount; -/* -* Variant of write_seqcount_t_begin() telling lockdep that a -* trylock was attempted. -*/ -__raw_write_seqcount_begin (s); -seqcount_acquire (&s->dep_map,0 ,1 , _RET_IP_); +if (try_write_seqlock (&qdisc->running))return true; - }return false;#else /* Variant of write_seqcount_begin() telling lockdep a trylock
kernel/time/hrtimer.c +1 -1
@@ -1819,7 +1819,7 @@ static void __hrtimer_init_sleeper(struct hrtimer_sleeper *sl,* expiry. */ if (IS_ENABLED (CONFIG_PREEMPT_RT )) { -if ((task_is_realtime (current) && !(mode &HRTIMER_MODE_SOFT )) || system_state !=SYSTEM_RUNNING ) +if (task_is_realtime (current) && !(mode &HRTIMER_MODE_SOFT )) mode |=HRTIMER_MODE_HARD ; }
kernel/time/timer.c +4 -2
@@ -1269,8 +1269,10 @@ static inline void timer_base_unlock_expiry(struct timer_base *base)static void timer_sync_wait_running (struct timer_base *base) {if (atomic_read (&base->timer_waiters)) { +raw_spin_unlock_irq (&base->lock);spin_unlock (&base->expiry_lock);spin_lock (&base->expiry_lock); +raw_spin_lock_irq (&base->lock); } }
@@ -1461,14 +1463,14 @@ static void expire_timers(struct timer_base *base, struct hlist_head *head)if (timer->flags &TIMER_IRQSAFE ) {raw_spin_unlock (&base->lock);call_timer_fn (timer, fn, baseclk); - base->running_timer =NULL ;raw_spin_lock (&base->lock); + base->running_timer =NULL ; }else {raw_spin_unlock_irq (&base->lock);call_timer_fn (timer, fn, baseclk); +raw_spin_lock_irq (&base->lock); base->running_timer =NULL ;timer_sync_wait_running (base); -raw_spin_lock_irq (&base->lock); } } }
localversion-rt +1 -1
@@ -1 +1 @@ --rt45 +-rt46
mm/swap.c +3 -2
@@ -666,12 +666,13 @@ void deactivate_file_page(struct page *page)void deactivate_page (struct page *page) {if (PageLRU (page) &&PageActive (page) && !PageUnevictable (page)) { -struct pagevec *pvec = &get_cpu_var (lru_deactivate_pvecs); +struct pagevec *pvec = &get_locked_var (swapvec_lock, + lru_deactivate_pvecs);get_page (page);if (!pagevec_add (pvec, page) ||PageCompound (page))pagevec_lru_move_fn (pvec, lru_deactivate_fn,NULL ); -put_cpu_var (lru_deactivate_pvecs); +put_locked_var (swapvec_lock, lru_deactivate_pvecs); } }