3.6.3-rt9
Subsystems (2)
Dear RT Folks,
I'm pleased to announce the 3.6.3-rt9 release.
Changes since 3.6.3-rt8:
* hrtimer fix for interrupt stall case (Watanabe)
* Disable RCU_FAST_NO_HZ. Uses a timer_list timer in the guts of the irq disable idle code. Needs some thought
* Netfilter RT workaround
* Adapt softirq_check_pending_idle() to the new softirq scheme Fixes reports of bogus: softirq pending messages
* Add more debug to the softirq code to catch cases which use __raise_softirq_irqsoff() in the wrong context
* Rework netif_rx_ni() to match the expectations of the new softirq code.
The delta patch against 3.6.3-rt8 is appended below and can be found here:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/incr/patch-3.6.3-rt8-rt9.patch.xz
The RT patch against 3.6.3 can be found here:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/patch-3.6.3-rt9.patch.xz
The split quilt queue is available at:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/patches-3.6.3-rt9.tar.xz
Enjoy,
tglx
---------->
include/linux/locallock.h +4 -0
@@ -25,6 +25,9 @@ struct local_irq_lock { DEFINE_PER_CPU(struct local_irq_lock, lvar) = { \ .lock = __SPIN_LOCK_UNLOCKED((lvar).lock) } +#define DECLARE_LOCAL_IRQ_LOCK (lvar) \ + DECLARE_PER_CPU(struct local_irq_lock, lvar) +#define local_irq_lock_init (lvar) \ do { \ int __cpu; \
@@ -220,6 +223,7 @@ static inline int __local_unlock_irqrest#else /* PREEMPT_RT_BASE */ #define DEFINE_LOCAL_IRQ_LOCK (lvar) __typeof__(const int) lvar +#define DECLARE_LOCAL_IRQ_LOCK (lvar) extern __typeof__(const int) lvarstatic inline void local_irq_lock_init (int lvar) { }
init/Kconfig +1 -1
@@ -504,7 +504,7 @@ config RCU_FANOUT_EXACT config RCU_FAST_NO_HZ bool "Accelerate last non-dyntick-idle CPU's grace periods" - depends on NO_HZ && SMP + depends on NO_HZ && SMP && !PREEMPT_RT_FULL default n help This option causes RCU to attempt to accelerate grace periods
kernel/hrtimer.c +4 -5
@@ -1527,11 +1527,7 @@ retry:if (expires_next.tv64 ==KTIME_MAX || !tick_program_event (expires_next,0 )) { cpu_base->hang_detected =0 ; - -if (raise) -raise_softirq_irqoff (HRTIMER_SOFTIRQ ); - -return ; + goto out; }/*
@@ -1575,6 +1571,9 @@ retry:tick_program_event (expires_next,1 );printk_once (KERN_WARNING "hrtimer: interrupt took %llu ns\n" ,ktime_to_ns (delta)); +out: +if (raise) +raise_softirq_irqoff (HRTIMER_SOFTIRQ ); }/*
kernel/softirq.c +61 -23
154 lines not on this page · raw message
localversion-rt +1 -1
@@ -1 +1 @@ --rt8 +-rt9
net/core/dev.c +2 -4
@@ -2993,11 +2993,9 @@ int netif_rx_ni(struct sk_buff *skb) {int err; -migrate_disable (); +local_bh_disable (); err =netif_rx (skb); -if (local_softirq_pending ()) -thread_do_softirq (); -migrate_enable (); +local_bh_enable ();return err; }
include/linux/netfilter/x_tables.h +7 -0
@@ -186,6 +186,7 @@ struct xt_counters_info {#ifdef __KERNEL__#include <linux/netdevice.h> +#include <linux/locallock.h> /** * struct xt_action_param - parameters for matches/targets
@@ -466,6 +467,8 @@ extern void xt_free_table_info(struct xt*/ DECLARE_PER_CPU (seqcount_t, xt_recseq); +DECLARE_LOCAL_IRQ_LOCK (xt_write_lock); +/** * xt_write_recseq_begin - start of a write section *
@@ -480,6 +483,9 @@ static inline unsigned int xt_write_recs {unsigned int addend; +/* RT protection */ +local_lock (xt_write_lock); +/* * Low order bit of sequence is set if we already * called xt_write_recseq_begin().
@@ -510,6 +516,7 @@ static inline void xt_write_recseq_end(u/* this is kind of a write_seqcount_end(), but addend is 0 or 1 */ smp_wmb ();__this_cpu_add (xt_recseq.sequence, addend); +local_unlock (xt_write_lock); }/*
net/netfilter/core.c +6 -0
@@ -20,11 +20,17 @@#include <linux/proc_fs.h> #include <linux/mutex.h> #include <linux/slab.h> +#include <linux/locallock.h> #include <net/net_namespace.h> #include <net/sock.h> #include "nf_internals.h" +#ifdef CONFIG_PREEMPT_RT_BASE +DEFINE_LOCAL_IRQ_LOCK (xt_write_lock); +EXPORT_PER_CPU_SYMBOL (xt_write_lock); +#endif +static DEFINE_MUTEX (afinfo_mutex);const struct nf_afinfo __rcu *nf_afinfo[NFPROTO_NUMPROTO ]__read_mostly ;