v4.14.1-rt3
Subsystems (6)
Dear RT folks!
I'm pleased to announce the v4.14.1-rt3 patch set.
Changes since v4.14.1-rt2:
- The "memcontrol Prevent scheduling while atomic in cgroup code" caused harm in a 4.4-RT kernel. Uppon investigation it turned out that the patch was no longer required and reverting would avoid the problem and the old issue won't show up again. Reported by Haiyang HY1 Tan and patched by Steven Rostedt.
- A workaround for a deadlock in jbd2 code has been dropped. It shouldn't be required since the "device mapper deadlock fix" in the last RT release.
- Clark Williams reported latency spikes on bigger iron (around 80 CPUs) caused by IPI based RT balancing logic. A patch from Steven Rostedt fixes the problem.
- Tom Zanussi's "tracing: Inter-event (e.g. latency) support" patch has been updated to v6.
- The hrtimer-softirq rewrite by Anna-Maria has been updated to upcoming v4.
Known issues
None
The delta patch appended at the bottom of this email contains all the changes except tracing due to the size of the tracing delta. For complete diff please visit
https://git.kernel.org/rt/linux-rt-devel/d/v4.14.1-rt3/v4.14.1-rt2
The delta patch against v4.14.1-rt2 can be found here:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.14/incr/patch-4.14.1-rt2-rt3.patch.xz
You can get this release via the git tree at:
git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git v4.14.1-rt3
The RT patch against v4.14.1 can be found here:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.14/older/patch-4.14.1-rt3.patch.xz
The split quilt queue is available at:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.14/older/patches-4.14.1-rt3.tar.xz
Sebastian
fs/jbd2/checkpoint.c +0 -2
@@ -116,8 +116,6 @@ void __jbd2_log_wait_for_space(journal_t *journal) nblocks =jbd2_space_needed (journal);while (jbd2_log_space_left (journal) < nblocks) {write_unlock (&journal->j_state_lock); -if (current->plug) -io_schedule ();mutex_lock (&journal->j_checkpoint_mutex);/*
include/linux/hrtimer.h +1 -0
@@ -110,6 +110,7 @@ enum hrtimer_restart {* @base: pointer to the timer base (per cpu and per clock) * @state: state information (See bit values above) * @is_rel: Set if the timer was armed relative +* @is_soft: Set if hrtimer will be expired in soft interrupt context. * * The hrtimer structure must be initialized by hrtimer_init() */
kernel/sched/rt.c +118 -205
380 lines not on this page · raw message
kernel/sched/sched.h +17 -7
@@ -502,7 +502,7 @@ static inline int rt_bandwidth_enabled(void) }/* RT IPI pull logic requires IRQ_WORK */ -#ifdef CONFIG_IRQ_WORK +#if defined(CONFIG_IRQ_WORK ) && defined(CONFIG_SMP )# define HAVE_RT_PUSH_IPI #endif
@@ -524,12 +524,6 @@ struct rt_rq {unsigned long rt_nr_total;int overloaded;struct plist_head pushable_tasks; -#ifdef HAVE_RT_PUSH_IPI -int push_flags; -int push_cpu; -struct irq_work push_work; -raw_spinlock_t push_lock; -#endif #endif /* CONFIG_SMP */ int rt_queued;
@@ -638,6 +632,19 @@ struct root_domain {struct dl_bw dl_bw;struct cpudl cpudl; +#ifdef HAVE_RT_PUSH_IPI +/* +* For IPI pull requests, loop across the rto_mask. +*/ +struct irq_work rto_push_work; +raw_spinlock_t rto_lock; +/* These are only updated and read within rto_lock */ +int rto_loop; +int rto_cpu; +/* These atomics are updated outside of a lock */ +atomic_t rto_loop_next; +atomic_t rto_loop_start; +#endif /* * The "RT overload" flag: it gets set if a CPU has more than * one runnable RT task.
@@ -655,6 +662,9 @@ extern void init_defrootdomain(void);extern int sched_init_domains (const struct cpumask *cpu_map);extern void rq_attach_root (struct rq *rq,struct root_domain *rd); +#ifdef HAVE_RT_PUSH_IPI +extern void rto_push_irq_work_func (struct irq_work *work); +#endif #endif /* CONFIG_SMP */ /*
kernel/sched/topology.c +7 -0
@@ -269,6 +269,13 @@ static int init_rootdomain(struct root_domain *rd)if (!zalloc_cpumask_var (&rd->rto_mask,GFP_KERNEL )) goto free_dlo_mask; +#ifdef HAVE_RT_PUSH_IPI + rd->rto_cpu =-1 ; +raw_spin_lock_init (&rd->rto_lock); +init_irq_work (&rd->rto_push_work, rto_push_irq_work_func); + rd->rto_push_work.flags |=IRQ_WORK_HARD_IRQ ; +#endif +init_dl_bw (&rd->dl_bw);if (cpudl_init (&rd->cpudl) !=0 ) goto free_rto_mask;
kernel/time/tick-internal.h +3 -4
@@ -151,11 +151,10 @@ static inline void tick_nohz_init(void) { }#ifdef CONFIG_NO_HZ_COMMON extern unsigned long tick_nohz_active;extern void timers_update_nohz (void ); - -#ifdef CONFIG_SMP +# ifdef CONFIG_SMP extern struct static_key_false timers_migration_enabled; -#endif -#else +# endif +#else /* CONFIG_NO_HZ_COMMON */ static inline void timers_update_nohz (void ) { }#define tick_nohz_active (0)#endif
kernel/time/timer.c +1 -7
@@ -276,14 +276,8 @@ static inline bool is_timers_nohz_active(void) {return static_branch_unlikely (&timers_nohz_active); } -#else - -static inline bool is_timers_nohz_active (void ) -{ -return false; -} - +static inline bool is_timers_nohz_active (void ) {return false; }#endif /* NO_HZ_COMMON */ static unsigned long round_jiffies_common(unsigned long j, int cpu,
localversion-rt +1 -1
@@ -1 +1 @@ --rt2 +-rt3
mm/memcontrol.c +6 -7
@@ -1723,7 +1723,6 @@ struct memcg_stock_pcp {#define FLUSHING_CACHED_CHARGE 0 }; static DEFINE_PER_CPU(struct memcg_stock_pcp, memcg_stock); -static DEFINE_LOCAL_IRQ_LOCK (memcg_stock_ll);static DEFINE_MUTEX (percpu_charge_mutex);/**
@@ -1746,7 +1745,7 @@ static bool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages)if (nr_pages >CHARGE_BATCH )return ret; -local_lock_irqsave (memcg_stock_ll, flags); +local_irq_save (flags); stock =this_cpu_ptr (&memcg_stock);if (memcg == stock->cached && stock->nr_pages >= nr_pages) {
@@ -1754,7 +1753,7 @@ static bool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages) ret = true; } -local_unlock_irqrestore (memcg_stock_ll, flags); +local_irq_restore (flags);return ret; }
@@ -1785,13 +1784,13 @@ static void drain_local_stock(struct work_struct *dummy)* The only protection from memory hotplug vs. drain_stock races is * that we always operate on local CPU stock here with IRQ disabled */ -local_lock_irqsave (memcg_stock_ll, flags); +local_irq_save (flags); stock =this_cpu_ptr (&memcg_stock);drain_stock (stock);clear_bit (FLUSHING_CACHED_CHARGE , &stock->flags); -local_unlock_irqrestore (memcg_stock_ll, flags); +local_irq_restore (flags); }/*
@@ -1803,7 +1802,7 @@ static void refill_stock(struct mem_cgroup *memcg, unsigned int nr_pages)struct memcg_stock_pcp *stock;unsigned long flags; -local_lock_irqsave (memcg_stock_ll, flags); +local_irq_save (flags); stock =this_cpu_ptr (&memcg_stock);if (stock->cached != memcg) {/* reset if necessary */
@@ -1815,7 +1814,7 @@ static void refill_stock(struct mem_cgroup *memcg, unsigned int nr_pages)if (stock->nr_pages >CHARGE_BATCH )drain_stock (stock); -local_unlock_irqrestore (memcg_stock_ll, flags); +local_irq_restore (flags); }/*