3.6.11-rt24 (apocalypse release)c
Subsystems (2)
Dear RT Folks,
I'm pleased to announce the 3.6.11-rt24 release. 3.6.9-rt21, 3.6.10-rt22 and 3.6.11-rt23 are not announced updates to the respective 3.6.y stable releases without any RT changes
Changes since 3.6.11-rt23:
* Fix the scheduler bug really. Thanks to Mike for noticing the issue. It turned out that there are a few more corner cases hidden in that code. See the 3 separate patches in the quilt queue for details.
* Fix a livelock issue in the block layer. Thanks to Steve for debugging it.
Known issues:
* There is still a possibility to get false positives from the NOHZ idle softirq pending detector. It's rather complex to fix and I have postponed it for a separate release. The warnings are harmless and can be ignored for now.
For those who are going to vanish today due to their firm believe in the Mayan Apocalypse it's the last release ever and I can assure you it's the best one as well. You just won't have enough time to verify that.
For all others this is just the last release of 2012.
The delta patch against 3.6.11-rt23 is appended below and can be found here:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/incr/patch-3.6.11-rt23-rt24.patch.xz
The RT patch against 3.6.11 can be found here:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/patch-3.6.11-rt24.patch.xz
The split quilt queue is available at:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/patches-3.6.11-rt24.tar.xz
Thanks to all of you who have contributed with patches, bugreports, testing ...! Special thanks to Steven for running the stable series!
I wish you all a Merry Christmas and a Happy New Year!
Thomas
------------->
include/linux/sched.h +5 -0
@@ -2144,6 +2144,7 @@ extern unsigned int sysctl_sched_cfs_ban#ifdef CONFIG_RT_MUTEXES extern int rt_mutex_getprio (struct task_struct *p);extern void rt_mutex_setprio (struct task_struct *p,int prio); +extern int rt_mutex_check_prio (struct task_struct *task,int newprio);extern void rt_mutex_adjust_pi (struct task_struct *p);static inline bool tsk_is_pi_blocked (struct task_struct *tsk) {
@@ -2154,6 +2155,10 @@ static inline int rt_mutex_getprio(struc {return p->normal_prio; } +static inline int rt_mutex_check_prio (struct task_struct *task,int newprio) +{ +return 0 ; +}# define rt_mutex_adjust_pi (p) do { } while (0)static inline bool tsk_is_pi_blocked (struct task_struct *tsk) {
kernel/rtmutex.c +12 -0
@@ -124,6 +124,18 @@ int rt_mutex_getprio(struct task_struct }/* +* Called by sched_setscheduler() to check whether the priority change +* is overruled by a possible priority boosting. +*/ +int rt_mutex_check_prio (struct task_struct *task,int newprio) +{ +if (!task_has_pi_waiters (task)) +return 0 ; + +return task_top_pi_waiter (task)->pi_list_entry.prio <= newprio; +} + +/* * Adjust the priority of a task, after its pi_waiters got modified. * * This can be both boosting and unboosting. task->pi_lock must be held.
kernel/sched/core.c +38 -16
111 lines not on this page · raw message
localversion-rt +1 -1
@@ -1 +1 @@ --rt23 +-rt24
block/blk-ioc.c +2 -2
@@ -110,7 +110,7 @@ static void ioc_release_fn(struct work_sspin_unlock (q->queue_lock); }else {spin_unlock_irqrestore (&ioc->lock, flags); -cpu_relax (); +cpu_chill ();spin_lock_irqsave_nested (&ioc->lock, flags,1 ); } }
@@ -188,7 +188,7 @@ retry:spin_unlock (icq->q->queue_lock); }else {spin_unlock_irqrestore (&ioc->lock, flags); -cpu_relax (); +cpu_chill (); goto retry; } }
Quoted 15 lines · On Fri, 21 Dec 2012 14:50:38 +0100 (CET) Thomas Gleixner <[email protected]>…
Index:
linux-stable/block/blk-ioc.c
===================================================================block/blk-ioc.c +1
-1@@ -110,7 +110,7 @@ static void ioc_release_fn(struct work_sspin_unlock (q->queue_lock); }else {spin_unlock_irqrestore (&ioc->lock, flags); -cpu_relax (); +cpu_chill ();spin_lock_irqsave_nested (&ioc->lock, flags,1 ); } }
block/blk-ioc.c retry: · line 194
Quoted 8 lines
block/blk-ioc.c +1
-1@@ -188,7 +188,7 @@ retry:spin_unlock (icq->q->queue_lock); }else {spin_unlock_irqrestore (&ioc->lock, flags); -cpu_relax (); +cpu_chill (); goto retry; } }
Thomas,
I had to add this to get -rt24 to compile:
commit cb25d4b84a6d8f155134f6d9aa2997a452ab1dca
Author: Clark Williams <[email protected]> Date: Fri Dec 21 09:22:26 2012 -0600
[RT] pull in include/linux/delay.h to get cpu_chill()
block/blk-ioc.c +1 -0
@@ -8,6 +8,7 @@#include <linux/blkdev.h> #include <linux/bootmem.h> /* for max_pfn/max_low_pfn */ #include <linux/slab.h> +#include <linux/delay.h> #include "blk.h"
Quoted 2 lines · Clark Williams
I had to add this to get -rt24 to compile:
+#include <linux/delay.h>
Carp. I should have run it through the full tests again after adding that last minute fix yesterday night. But it was sooo obvious and of course compiled with my config which magically pulls in that header.
I silently uploaded -rt25
Thanks,
tglx
Quoted 9 lines · Thomas Gleixner
Quoted 2 lines · Clark Williams
I had to add this to get -rt24 to compile:
+#include <linux/delay.h>Carp. I should have run it through the full tests again after adding that last minute fix yesterday night. But it was sooo obvious and of course compiled with my config which magically pulls in that header.
I silently uploaded -rt25
I was just gonna report that, but needn't bother. I was also gonna attach an xmas patchlet for those who need/want softirq threads. I can still do that I suppose...
Your changes made this a lot less fugly. The net threads are kinda out of work with the new scheme, but some folks may find it's still nice to be able to run some things SCHED_OTHER, or eq hrtimer at max.
Ho Ho.. Hum, merry apocalypse.
-Mike
sched,rt: resurrect softirq threads for RT_FULL
--- include/linux/interrupt.h | 9 +-- include/linux/sched.h | 6 ++ kernel/sched/core.c | 4 - kernel/softirq.c | 105 +++++++++++++++++++++++++++++++--------------- 4 files changed, 84 insertions(+), 40 deletions(-)
include/linux/interrupt.h +3 -6
@@ -454,8 +454,10 @@ struct softirq_action asmlinkage void do_softirq(void); asmlinkage void __do_softirq(void);static inline void thread_do_softirq (void ) {do_softirq (); } +#define NR_SOFTIRQ_THREADS 1#else extern void thread_do_softirq (void ); +#define NR_SOFTIRQ_THREADS NR_SOFTIRQS#endif extern void open_softirq (int nr,void (*action)(struct softirq_action *));
@@ -476,12 +478,7 @@ extern void softirq_check_pending_idle(v*/ DECLARE_PER_CPU(struct list_head [NR_SOFTIRQS], softirq_work_list); -DECLARE_PER_CPU(struct task_struct *, ksoftirqd); - -static inline struct task_struct *this_cpu_ksoftirqd (void ) -{ -return this_cpu_read (ksoftirqd); -} +DECLARE_PER_CPU(struct task_struct * [NR_SOFTIRQ_THREADS], ksoftirqd);/* Try to send a softirq to a remote cpu. If this cannot be done, the * work will be queued to the local cpu.
include/linux/sched.h +6 -0
@@ -1331,6 +1331,7 @@ struct task_struct {/* Revert to default priority/policy when forking */ unsigned sched_reset_on_fork:1; unsigned sched_contributes_to_load:1; + unsigned sched_is_softirqd:1;pid_t pid;pid_t tgid;
@@ -1683,6 +1684,11 @@ static inline struct pid *task_tgid(strureturn task->group_leader->pids[PIDTYPE_PID ].pid; } +static inline bool task_is_softirqd (struct task_struct *task) +{ +return task->sched_is_softirqd; +} +/* * Without tasklist or rcu lock it is not safe to dereference * the result of task_pgrp/task_session even if task == current,
kernel/sched/core.c +2 -2
@@ -887,7 +887,7 @@ void account_system_vtime(struct task_st*/ if (hardirq_count ())__this_cpu_add (cpu_hardirq_time, delta); -else if (in_serving_softirq () && curr !=this_cpu_ksoftirqd ()) +else if (in_serving_softirq () && !task_is_softirqd (curr))__this_cpu_add (cpu_softirq_time, delta);irq_time_write_end ();
@@ -3122,7 +3122,7 @@ static void irqtime_account_process_tick cpustat[CPUTIME_IRQ ] += (__force u64 ) cputime_one_jiffy; }else if (irqtime_account_si_update ()) { cpustat[CPUTIME_SOFTIRQ ] += (__force u64 ) cputime_one_jiffy; - }else if (this_cpu_ksoftirqd () == p) { + }else if (task_is_softirqd (p)) {/* * ksoftirqd time do not get accounted in cpu_softirq_time. * So, we have to handle it separately here.
kernel/softirq.c +73 -32
195 lines not on this page · raw message
Quoted 40 lines · Thomas Gleixner
Dear RT Folks,
I'm pleased to announce the 3.6.11-rt24 release. 3.6.9-rt21, 3.6.10-rt22 and 3.6.11-rt23 are not announced updates to the respective 3.6.y stable releases without any RT changes
Changes since 3.6.11-rt23:
* Fix the scheduler bug really. Thanks to Mike for noticing the issue. It turned out that there are a few more corner cases hidden in that code. See the 3 separate patches in the quilt queue for details.
* Fix a livelock issue in the block layer. Thanks to Steve for debugging it.
Known issues:
* There is still a possibility to get false positives from the NOHZ idle softirq pending detector. It's rather complex to fix and I have postponed it for a separate release. The warnings are harmless and can be ignored for now.
For those who are going to vanish today due to their firm believe in the Mayan Apocalypse it's the last release ever and I can assure you it's the best one as well. You just won't have enough time to verify that.
For all others this is just the last release of 2012.
The delta patch against 3.6.11-rt23 is appended below and can be found here:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/incr/patch-3.6.11-rt23-rt24.patch.xz
The RT patch against 3.6.11 can be found here:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/patch-3.6.11-rt24.patch.xz
Quoted 7 lines
The split quilt queue is available at:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/patches-3.6.11-rt24.tar.xz
Thanks to all of you who have contributed with patches, bugreports, testing ...! Special thanks to Steven for running the stable series!
Just got this apocalypse day hiccup.
[ 4577.585902] BUG: soft lockup - CPU#34 stuck for 23s! [bash:7313] [ 4577.585924] Modules linked in: nfsv3 nfs_acl nfs fscache lockd sunrpc autofs4 ipmi_devintf ipmi_si ipmi_msghandler edd af_packet cpufreq_conservative cpufreq_userspace cpufreq_powersave pcc_cpufreq mperf fuse loop dm_mod sg ipv6 coretemp kvm_intel hpwdt iTCO_wdt iTCO_vendor_support sr_mod cdrom kvm netxen_nic shpchp container i7core_edac hpilo joydev hid_generic rtc_cmos lpc_ich bnx2 pci_hotplug crc32c_intel serio_raw edac_core microcode mfd_core pcspkr acpi_power_meter button ext3 jbd mbcache usbhid hid radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core uhci_hcd ehci_hcd sd_mod crc_t10dif usbcore thermal usb_common processor thermal_sys hwmon scsi_dh_rdac scsi_dh_alua scsi_dh_emc scsi_dh_hp_sw scsi_dh ata_generic ata_piix libata hpsa cciss scsi_mod [ 4577.585926] CPU 34 [ 4577.585926] Pid: 7313, comm: bash Not tainted 3.6.11-rt24-rt_trace #6 Hewlett-Packard ProLiant DL980 G7 [ 4577.585930] RIP: 0010:[<ffffffff81481fa2>] [<ffffffff81481fa2>] _raw_spin_lock+0x32/0x40 [ 4577.585931] RSP: 0018:ffff88026ce819b8 EFLAGS: 00000a87 [ 4577.585932] RAX: 000000000000c160 RBX: ffff88026ce81a38 RCX: ffff8802717ec140 [ 4577.585933] RDX: 00000000000066ee RSI: ffff88026ce81fd8 RDI: ffff880200444f40 [ 4577.585934] RBP: ffff88026ce819b8 R08: 0000000000000003 R09: 0000000000000007 [ 4577.585935] R10: ffff88026bf58000 R11: 0000000000000000 R12: ffff88027702c0c0 [ 4577.585936] R13: 0000000000000000 R14: ffffffff811a26ac R15: ffff88026ce81978 [ 4577.585937] FS: 00007f00c58d1700(0000) GS:ffff88027ea40000(0000) knlGS:0000000000000000 [ 4577.585938] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4577.585939] CR2: 00000000006be8a0 CR3: 0000000262413000 CR4: 00000000000007e0 [ 4577.585941] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 4577.585942] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 4577.585943] Process bash (pid: 7313, threadinfo ffff88026ce80000, task ffff8802717ec140) [ 4577.585944] Stack: [ 4577.585953] ffff88026ce81a98 ffffffff81481366 0000000000001000 0000000000113800 [ 4577.585957] ffff88027702c0c0 ffff8802690cd520 ffff88026ce81a18 ffffffff811a3d06 [ 4577.585961] 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 4577.585961] Call Trace: [ 4577.585964] [<ffffffff81481366>] rt_spin_lock_slowlock+0x36/0x320 [ 4577.585967] [<ffffffff811a3d06>] ? __getblk+0x26/0x50 [ 4577.585970] [<ffffffff81481c97>] rt_spin_lock+0x27/0x30 [ 4577.585973] [<ffffffff8112583d>] activate_page+0x8d/0x130 [ 4577.585976] [<ffffffff8112592b>] mark_page_accessed+0x4b/0x60 [ 4577.585978] [<ffffffff811a2a88>] __find_get_block+0xc8/0x210 [ 4577.585981] [<ffffffff811a3d06>] __getblk+0x26/0x50 [ 4577.585988] [<ffffffffa034253c>] __ext3_get_inode_loc+0x10c/0x390 [ext3] [ 4577.585995] [<ffffffffa0343610>] ext3_iget+0x90/0x4d0 [ext3] [ 4577.586002] [<ffffffffa034b338>] ext3_lookup+0xa8/0x120 [ext3] [ 4577.586005] [<ffffffff8117a365>] lookup_real+0x25/0x60 [ 4577.586007] [<ffffffff8117aa09>] __lookup_hash+0x39/0x50 [ 4577.586010] [<ffffffff8117ee85>] path_lookupat+0x7b5/0x870 [ 4577.586013] [<ffffffff8108057b>] ? migrate_enable+0xfb/0x230 [ 4577.586016] [<ffffffff8117ef75>] do_path_lookup+0x35/0xd0 [ 4577.586018] [<ffffffff8117fc13>] user_path_at_empty+0x83/0xb0 [ 4577.586021] [<ffffffff81077aaf>] ? lg_local_unlock+0x1f/0x30 [ 4577.586024] [<ffffffff8118f881>] ? mntput_no_expire+0x51/0x1a0 [ 4577.586026] [<ffffffff811742b5>] ? cp_new_stat+0x105/0x120 [ 4577.586029] [<ffffffff8117fc51>] user_path_at+0x11/0x20 [ 4577.586031] [<ffffffff8117452b>] vfs_fstatat+0x4b/0x90 [ 4577.586034] [<ffffffff8117469b>] vfs_stat+0x1b/0x20 [ 4577.586036] [<ffffffff811746c4>] sys_newstat+0x24/0x50 [ 4577.586040] [<ffffffff81489869>] system_call_fastpath+0x16/0x1b [ 4577.586053] Code: 66 90 65 48 8b 04 25 48 99 00 00 83 80 44 e0 ff ff 01 b8 00 00 01 00 f0 0f c1 07 89 c2 c1 ea 10 66 39 d0 74 0e 0f 1f 40 00 f3 90 <0f> b7 07 66 39 c2 75 f6 c9 c3 0f 1f 40 00 55 48 89 e5 66 66 66 [ 4578.002993] BUG: soft lockup - CPU#43 stuck for 22s! [syslog-ng:4245] [ 4578.003041] Modules linked in: nfsv3 nfs_acl nfs fscache lockd sunrpc autofs4 ipmi_devintf ipmi_si ipmi_msghandler edd af_packet cpufreq_conservative cpufreq_userspace cpufreq_powersave pcc_cpufreq mperf fuse loop dm_mod sg ipv6 coretemp kvm_intel hpwdt iTCO_wdt iTCO_vendor_support sr_mod cdrom kvm netxen_nic shpchp container i7core_edac hpilo joydev hid_generic rtc_cmos lpc_ich bnx2 pci_hotplug crc32c_intel serio_raw edac_core microcode mfd_core pcspkr acpi_power_meter button ext3 jbd mbcache usbhid hid radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core uhci_hcd ehci_hcd sd_mod crc_t10dif usbcore thermal usb_common processor thermal_sys hwmon scsi_dh_rdac scsi_dh_alua scsi_dh_emc scsi_dh_hp_sw scsi_dh ata_generic ata_piix libata hpsa cciss scsi_mod [ 4578.003045] CPU 43 [ 4578.003046] Pid: 4245, comm: syslog-ng Not tainted 3.6.11-rt24-rt_trace #6 Hewlett-Packard ProLiant DL980 G7 [ 4578.003059] RIP: 0010:[<ffffffff81481fa2>] [<ffffffff81481fa2>] _raw_spin_lock+0x32/0x40 [ 4578.003060] RSP: 0018:ffff880273ac9ae8 EFLAGS: 00000297 [ 4578.003061] RAX: 0000000000000001 RBX: ffff880273ac8000 RCX: ffff880271e66580 [ 4578.003062] RDX: 0000000000000000 RSI: ffff880273ac9fd8 RDI: ffff880200564f40 [ 4578.003063] RBP: ffff880273ac9ae8 R08: ffff880273ac9b58 R09: 0000000000001000 [ 4578.003064] R10: 00000000fffff1d9 R11: 0000000000000080 R12: ffff880271e66580 [ 4578.003065] R13: 0000000000000002 R14: ffffffff8106e347 R15: ffff880273ac9a58 [ 4578.003067] FS: 00007f892a42c700(0000) GS:ffff88027eb60000(0000) knlGS:0000000000000000 [ 4578.003068] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4578.003069] CR2: ffffffffff600400 CR3: 00000002673f4000 CR4: 00000000000007e0 [ 4578.003070] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 4578.003071] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 4578.003073] Process syslog-ng (pid: 4245, threadinfo ffff880273ac8000, task ffff880271e66580) [ 4578.003073] Stack: [ 4578.003078] ffff880273ac9bc8 ffffffff81481366 ffff8802709f8c78 ffff8802709f8ed0 [ 4578.003083] fffffdc06b578800 0000000000001000 ffffffffa03446b0 ffffea000764af88 [ 4578.003087] 00000240000001d9 ffff8802702c7520 ffff8802022c0c10 ffff88021cc47240 [ 4578.003088] Call Trace: [ 4578.003094] [<ffffffff81481366>] rt_spin_lock_slowlock+0x36/0x320 [ 4578.003109] [<ffffffffa03446b0>] ? ext3_get_blocks_handle+0x760/0x760 [ext3] [ 4578.003112] [<ffffffff81481c97>] rt_spin_lock+0x27/0x30 [ 4578.003119] [<ffffffff8112583d>] activate_page+0x8d/0x130 [ 4578.003122] [<ffffffff8112592b>] mark_page_accessed+0x4b/0x60 [ 4578.003132] [<ffffffff81115756>] generic_perform_write+0xf6/0x1e0 [ 4578.003138] [<ffffffff81137acb>] ? bdi_wakeup_thread_delayed+0x3b/0x50 [ 4578.003142] [<ffffffff811158a5>] generic_file_buffered_write+0x65/0xa0 [ 4578.003147] [<ffffffff81118356>] __generic_file_aio_write+0x1b6/0x390 [ 4578.003157] [<ffffffff81165973>] ? kmem_cache_free+0x1b3/0x310 [ 4578.003159] [<ffffffff811185a7>] generic_file_aio_write+0x77/0xe0 [ 4578.003165] [<ffffffff8116edc9>] do_sync_write+0xa9/0xf0 [ 4578.003168] [<ffffffff8116f3cb>] vfs_write+0xcb/0x130 [ 4578.003170] [<ffffffff8116f525>] sys_write+0x55/0x90 [ 4578.003175] [<ffffffff81489869>] system_call_fastpath+0x16/0x1b [ 4578.003190] Code: 66 90 65 48 8b 04 25 48 99 00 00 83 80 44 e0 ff ff 01 b8 00 00 01 00 f0 0f c1 07 89 c2 c1 ea 10 66 39 d0 74 0e 0f 1f 40 00 f3 90 <0f> b7 07 66 39 c2 75 f6 c9 c3 0f 1f 40 00 55 48 89 e5 66 66 66
repeat....
Quoted 1 line · Mike Galbraith
Just got this apocalypse day hiccup.
Can you revert the block chill patch ?
Quoted 4 lines · Thomas Gleixner
Quoted 1 line · Mike Galbraith
Just got this apocalypse day hiccup.
Can you revert the block chill patch ?
Sure, will do, and beat the box up a bit.
-Mike
Quoted 7 lines · Mike Galbraith
Quoted 4 lines · Thomas Gleixner
Quoted 1 line · Mike Galbraith
Just got this apocalypse day hiccup.
Can you revert the block chill patch ?
Sure, will do, and beat the box up a bit.
Hm, while I was away, box must have had a fit, then boot didn't go well.
It the end of the world as we know it, it's the.... lalalalala :)
[ 7.485144] Unpacking initramfs... [ 7.490424] BUG: unable to handle kernel paging request at ffff87ffb5c04f70 [ 7.490430] IP: [<ffffffff811252e8>] __lru_cache_add+0x48/0x120 [ 7.490432] PGD 0 [ 7.490434] Oops: 0000 [#1] PREEMPT SMP [ 7.490437] Modules linked in: [ 7.490442] CPU 0 [ 7.490442] Pid: 1, comm: swapper/0 Not tainted 3.6.11-rt24-rt_trace #6 Hewlett-Packard ProLiant DL980 G7 [ 7.490445] RIP: 0010:[<ffffffff811252e8>] [<ffffffff811252e8>] __lru_cache_add+0x48/0x120 [ 7.490447] RSP: 0018:ffff880035d2b8f0 EFLAGS: 00010283 [ 7.490448] RAX: 0000000000000000 RBX: ffff87ffb5c04f40 RCX: ffff880035d2a000 [ 7.490449] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffea0000b215b0 [ 7.490450] RBP: ffff880035d2b920 R08: 0000000000014603 R09: 0000000000014601 [ 7.490451] R10: 00000000000000e0 R11: 00000000000145b8 R12: ffff880035d28040 [ 7.490452] R13: ffffea0000b215b0 R14: 0000000000000002 R15: ffffffff81a04f40 [ 7.490453] FS: 0000000000000000(0000) GS:ffff880034200000(0000) knlGS:0000000000000000 [ 7.490454] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 7.490455] CR2: ffff87ffb5c04f70 CR3: 0000000028a0e000 CR4: 00000000000007f0 [ 7.490456] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 7.490457] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 7.490458] Process swapper/0 (pid: 1, threadinfo ffff880035d2a000, task ffff880035d28040) [ 7.490458] Stack: [ 7.490463] ffff880035d2b920 ffffea0000b215b0 0000000000000000 0000000000000000 [ 7.490467] ffff88003290f480 00000000000200d2 ffff880035d2b940 ffffffff81116a9d [ 7.490471] ffffea0000b215b0 0000000000000000 ffff880035d2b990 ffffffff81116b3c [ 7.490472] Call Trace: [ 7.490479] [<ffffffff81116a9d>] add_to_page_cache_lru+0x4d/0x50 [ 7.490481] [<ffffffff81116b3c>] grab_cache_page_write_begin+0x9c/0xf0 [ 7.490484] [<ffffffff81195f4b>] simple_write_begin+0x3b/0x100 [ 7.490487] [<ffffffff81115721>] generic_perform_write+0xc1/0x1e0 [ 7.490490] [<ffffffff8104f3a7>] ? current_fs_time+0x27/0x30 [ 7.490493] [<ffffffff811158a5>] generic_file_buffered_write+0x65/0xa0 [ 7.490496] [<ffffffff81118356>] __generic_file_aio_write+0x1b6/0x390 [ 7.490499] [<ffffffff811185a7>] generic_file_aio_write+0x77/0xe0 [ 7.490509] [<ffffffff81b03460>] ? bunzip2+0x38f/0x38f [ 7.490512] [<ffffffff8116edc9>] do_sync_write+0xa9/0xf0 [ 7.490515] [<ffffffff8116f3cb>] vfs_write+0xcb/0x130 [ 7.490517] [<ffffffff8116f525>] sys_write+0x55/0x90 [ 7.490524] [<ffffffff81ad84e8>] do_copy+0x6d/0xe7 [ 7.490526] [<ffffffff81ad7fd9>] flush_buffer+0x4d/0xa8 [ 7.490528] [<ffffffff81b0373b>] gunzip+0x2d0/0x385 [ 7.490531] [<ffffffff81ad7f8c>] ? do_reset+0x88/0x88 [ 7.490533] [<ffffffff81ad83ca>] unpack_to_rootfs+0x260/0x311 [ 7.490536] [<ffffffff81ad7e00>] ? md_run_setup+0x9a/0x9a [ 7.490544] [<ffffffff8147ed91>] ? printk+0x4f/0x51 [ 7.490546] [<ffffffff81ad8c4d>] ? do_header+0x292/0x292 [ 7.490549] [<ffffffff81ad8ca9>] populate_rootfs+0x5c/0x118 [ 7.490552] [<ffffffff810001c2>] do_one_initcall+0x42/0x180 [ 7.490555] [<ffffffff81ad6616>] do_basic_setup+0xad/0xce [ 7.490557] [<ffffffff81ad6637>] ? do_basic_setup+0xce/0xce [ 7.490560] [<ffffffff81ad6825>] kernel_init+0x196/0x21c [ 7.490562] [<ffffffff8148a904>] kernel_thread_helper+0x4/0x10 [ 7.490565] [<ffffffff81ad668f>] ? repair_env_string+0x58/0x58 [ 7.490567] [<ffffffff8148a900>] ? gs_change+0x13/0x13 [ 7.490581] Code: 66 66 66 90 49 c7 c7 40 4f a0 81 49 89 fd 41 89 f6 4c 89 fb e8 da b3 f5 ff 65 48 03 1c 25 28 ae 00 00 65 4c 8b 24 25 40 99 00 00 <4c> 39 63 30 74 11 e8 bd b3 f5 ff 48 89 df e8 75 c9 35 00 4c 89 [ 7.490583] RIP [<ffffffff811252e8>] __lru_cache_add+0x48/0x120 [ 7.490584] RSP <ffff880035d2b8f0> [ 7.490585] CR2: ffff87ffb5c04f70 [ 8.146910] ---[ end trace 0000000000000001 ]--- [ 8.146974] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
Quoted 10 lines · Mike Galbraith
Quoted 7 lines · Mike Galbraith
Quoted 4 lines · Thomas Gleixner
Quoted 1 line · Mike Galbraith
Just got this apocalypse day hiccup.
Can you revert the block chill patch ?
Sure, will do, and beat the box up a bit.
Hm, while I was away, box must have had a fit, then boot didn't go well.
It did that again (chill is reverted), but what it was up to prior to reboot was endless soft lockup.
[ 330.529754] BUG: soft lockup - CPU#41 stuck for 22s! [init_buildsyste:28863] [ 330.529801] Modules linked in: iptable_filter ip_tables x_tables nfsv3 nfs_acl nfs fscache lockd sunrpc autofs4 ipmi_devintf ipmi_si ipmi_msghandler edd af_packet cpufreq_conservative cpufreq_userspace cpufreq_powersave pcc_cpufreq mperf fuse loop dm_mod ipv6 bnx2 coretemp kvm_intel iTCO_wdt sr_mod cdrom netxen_nic iTCO_vendor_support shpchp rtc_cmos kvm hpwdt joydev hid_generic sg container hpilo lpc_ich crc32c_intel pci_hotplug i7core_edac microcode mfd_core edac_core serio_raw pcspkr acpi_power_meter button ext3 jbd mbcache usbhid hid radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core uhci_hcd ehci_hcd sd_mod crc_t10dif usbcore thermal usb_common processor thermal_sys hwmon scsi_dh_rdac scsi_dh_alua scsi_dh_emc scsi_dh_hp_sw scsi_dh ata_generic ata_piix libata hpsa cciss scsi_mod [ 330.529808] CPU 41 [ 330.529808] Pid: 28863, comm: init_buildsyste Not tainted 3.6.11-rt24-rt_trace #7 Hewlett-Packard ProLiant DL980 G7 [ 330.529820] RIP: 0010:[<ffffffff81481f95>] [<ffffffff81481f95>] _raw_spin_lock+0x35/0x40 [ 330.529822] RSP: 0018:ffff88026bd41a38 EFLAGS: 00000283 [ 330.529823] RAX: 0000000000006372 RBX: ffff88026d6f8580 RCX: ffff88026d6f8580 [ 330.529824] RDX: 000000000000273d RSI: 0000000000000001 RDI: ffff880200524f40 [ 330.529825] RBP: ffff88026bd41a38 R08: 0000000000014669 R09: 0000000000014667 [ 330.529826] R10: 0000000000000000 R11: 0000000000014620 R12: ffff88026d6f8cf8 [ 330.529827] R13: 0000000000000030 R14: ffff88026bd40000 R15: ffff88026bd40010 [ 330.529829] FS: 00007f0e637a4700(0000) GS:ffff88027eb20000(0000) knlGS:0000000000000000 [ 330.529830] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 330.529831] CR2: 00007f0e62e12c30 CR3: 000000027273c000 CR4: 00000000000007e0 [ 330.529832] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 330.529832] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 330.529834] Process init_buildsyste (pid: 28863, threadinfo ffff88026bd40000, task ffff88026d6f8580) [ 330.529834] Stack: [ 330.529846] ffff88026bd41b18 ffffffff81481356 0000000000000000 0000000000000000 [ 330.529849] 0000000000000002 0000000000000003 ffff88026bd41b28 ffffffff81120252 [ 330.529854] ffff88027ffebe00 ffff880200000002 ffff88026bd41fd8 ffff88026d6f8580 [ 330.529854] Call Trace: [ 330.529860] [<ffffffff81481356>] rt_spin_lock_slowlock+0x36/0x320 [ 330.529867] [<ffffffff81120252>] ? __alloc_pages_nodemask+0x162/0x260 [ 330.529870] [<ffffffff81481c87>] rt_spin_lock+0x27/0x30 [ 330.529874] [<ffffffff811252fb>] __lru_cache_add+0x5b/0x120 [ 330.529877] [<ffffffff811253e8>] lru_cache_add_lru+0x28/0x40 [ 330.529884] [<ffffffff8114a9b5>] page_add_new_anon_rmap+0xa5/0xd0 [ 330.529888] [<ffffffff8113de4d>] do_anonymous_page+0x28d/0x330 [ 330.529892] [<ffffffff81142e1a>] handle_pte_fault+0x20a/0x210 [ 330.529895] [<ffffffff81142fcc>] handle_mm_fault+0x1ac/0x240 [ 330.529897] [<ffffffff8114324c>] __get_user_pages+0x11c/0x580 [ 330.529900] [<ffffffff81143762>] get_user_pages+0x52/0x60
Quoted 64 lines
It the end of the world as we know it, it's the.... lalalalala :)
[ 7.485144] Unpacking initramfs... [ 7.490424] BUG: unable to handle kernel paging request at ffff87ffb5c04f70 [ 7.490430] IP: [<ffffffff811252e8>] __lru_cache_add+0x48/0x120 [ 7.490432] PGD 0 [ 7.490434] Oops: 0000 [#1] PREEMPT SMP [ 7.490437] Modules linked in: [ 7.490442] CPU 0 [ 7.490442] Pid: 1, comm: swapper/0 Not tainted 3.6.11-rt24-rt_trace #6 Hewlett-Packard ProLiant DL980 G7 [ 7.490445] RIP: 0010:[<ffffffff811252e8>] [<ffffffff811252e8>] __lru_cache_add+0x48/0x120 [ 7.490447] RSP: 0018:ffff880035d2b8f0 EFLAGS: 00010283 [ 7.490448] RAX: 0000000000000000 RBX: ffff87ffb5c04f40 RCX: ffff880035d2a000 [ 7.490449] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffea0000b215b0 [ 7.490450] RBP: ffff880035d2b920 R08: 0000000000014603 R09: 0000000000014601 [ 7.490451] R10: 00000000000000e0 R11: 00000000000145b8 R12: ffff880035d28040 [ 7.490452] R13: ffffea0000b215b0 R14: 0000000000000002 R15: ffffffff81a04f40 [ 7.490453] FS: 0000000000000000(0000) GS:ffff880034200000(0000) knlGS:0000000000000000 [ 7.490454] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 7.490455] CR2: ffff87ffb5c04f70 CR3: 0000000028a0e000 CR4: 00000000000007f0 [ 7.490456] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 7.490457] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 7.490458] Process swapper/0 (pid: 1, threadinfo ffff880035d2a000, task ffff880035d28040) [ 7.490458] Stack: [ 7.490463] ffff880035d2b920 ffffea0000b215b0 0000000000000000 0000000000000000 [ 7.490467] ffff88003290f480 00000000000200d2 ffff880035d2b940 ffffffff81116a9d [ 7.490471] ffffea0000b215b0 0000000000000000 ffff880035d2b990 ffffffff81116b3c [ 7.490472] Call Trace: [ 7.490479] [<ffffffff81116a9d>] add_to_page_cache_lru+0x4d/0x50 [ 7.490481] [<ffffffff81116b3c>] grab_cache_page_write_begin+0x9c/0xf0 [ 7.490484] [<ffffffff81195f4b>] simple_write_begin+0x3b/0x100 [ 7.490487] [<ffffffff81115721>] generic_perform_write+0xc1/0x1e0 [ 7.490490] [<ffffffff8104f3a7>] ? current_fs_time+0x27/0x30 [ 7.490493] [<ffffffff811158a5>] generic_file_buffered_write+0x65/0xa0 [ 7.490496] [<ffffffff81118356>] __generic_file_aio_write+0x1b6/0x390 [ 7.490499] [<ffffffff811185a7>] generic_file_aio_write+0x77/0xe0 [ 7.490509] [<ffffffff81b03460>] ? bunzip2+0x38f/0x38f [ 7.490512] [<ffffffff8116edc9>] do_sync_write+0xa9/0xf0 [ 7.490515] [<ffffffff8116f3cb>] vfs_write+0xcb/0x130 [ 7.490517] [<ffffffff8116f525>] sys_write+0x55/0x90 [ 7.490524] [<ffffffff81ad84e8>] do_copy+0x6d/0xe7 [ 7.490526] [<ffffffff81ad7fd9>] flush_buffer+0x4d/0xa8 [ 7.490528] [<ffffffff81b0373b>] gunzip+0x2d0/0x385 [ 7.490531] [<ffffffff81ad7f8c>] ? do_reset+0x88/0x88 [ 7.490533] [<ffffffff81ad83ca>] unpack_to_rootfs+0x260/0x311 [ 7.490536] [<ffffffff81ad7e00>] ? md_run_setup+0x9a/0x9a [ 7.490544] [<ffffffff8147ed91>] ? printk+0x4f/0x51 [ 7.490546] [<ffffffff81ad8c4d>] ? do_header+0x292/0x292 [ 7.490549] [<ffffffff81ad8ca9>] populate_rootfs+0x5c/0x118 [ 7.490552] [<ffffffff810001c2>] do_one_initcall+0x42/0x180 [ 7.490555] [<ffffffff81ad6616>] do_basic_setup+0xad/0xce [ 7.490557] [<ffffffff81ad6637>] ? do_basic_setup+0xce/0xce [ 7.490560] [<ffffffff81ad6825>] kernel_init+0x196/0x21c [ 7.490562] [<ffffffff8148a904>] kernel_thread_helper+0x4/0x10 [ 7.490565] [<ffffffff81ad668f>] ? repair_env_string+0x58/0x58 [ 7.490567] [<ffffffff8148a900>] ? gs_change+0x13/0x13 [ 7.490581] Code: 66 66 66 90 49 c7 c7 40 4f a0 81 49 89 fd 41 89 f6 4c 89 fb e8 da b3 f5 ff 65 48 03 1c 25 28 ae 00 00 65 4c 8b 24 25 40 99 00 00 <4c> 39 63 30 74 11 e8 bd b3 f5 ff 48 89 df e8 75 c9 35 00 4c 89 [ 7.490583] RIP [<ffffffff811252e8>] __lru_cache_add+0x48/0x120 [ 7.490584] RSP <ffff880035d2b8f0> [ 7.490585] CR2: ffff87ffb5c04f70 [ 8.146910] ---[ end trace 0000000000000001 ]--- [ 8.146974] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
Quoted 6 lines · Mike Galbraith
Quoted 5 lines · Mike Galbraith
Quoted 4 lines · Mike Galbraith
Quoted 3 lines · Thomas Gleixner
Quoted 1 line · Mike Galbraith
Just got this apocalypse day hiccup.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Can you revert the block chill patch ?
Sure, will do, and beat the box up a bit.
Hm, while I was away, box must have had a fit, then boot didn't go well.
It did that again (chill is reverted), but what it was up to prior to reboot was endless soft lockup.
(ie it's crashing while trying to crash dump the lockup. poo)
thanks Thomas,
this release exploded my server completely :o)
I'm waiting for the new world version as soon as possible stop....
I don't know if it's the kernel version or RT but at boot some network bond config are locked
it blocks sshd so I can't take any log...
when I go back to 3.6.6 everything is ok
Regards
Franck
----- Original Message ----- From: "Thomas Gleixner" <[email protected]>
To: "LKML" <[email protected]>
Cc: "linux-rt-users" <[email protected]>
Sent: Friday, December 21, 2012 8:50 AM
Subject: [ANNOUNCE] 3.6.11-rt24 (apocalypse release)c
Quoted 261 lines
Dear RT Folks,
I'm pleased to announce the 3.6.11-rt24 release. 3.6.9-rt21, 3.6.10-rt22 and 3.6.11-rt23 are not announced updates to the respective 3.6.y stable releases without any RT changes
Changes since 3.6.11-rt23:
* Fix the scheduler bug really. Thanks to Mike for noticing the issue. It turned out that there are a few more corner cases hidden in that code. See the 3 separate patches in the quilt queue for details.
* Fix a livelock issue in the block layer. Thanks to Steve for debugging it.
Known issues:
* There is still a possibility to get false positives from the NOHZ idle softirq pending detector. It's rather complex to fix and I have postponed it for a separate release. The warnings are harmless and can be ignored for now.
For those who are going to vanish today due to their firm believe in the Mayan Apocalypse it's the last release ever and I can assure you it's the best one as well. You just won't have enough time to verify that.
For all others this is just the last release of 2012.
The delta patch against 3.6.11-rt23 is appended below and can be found here:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/incr/patch-3.6.11-rt23-rt24.patch.xz
The RT patch against 3.6.11 can be found here:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/patch-3.6.11-rt24.patch.xz
The split quilt queue is available at:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/patches-3.6.11-rt24.tar.xz
Thanks to all of you who have contributed with patches, bugreports, testing ...! Special thanks to Steven for running the stable series!
I wish you all a Merry Christmas and a Happy New Year!
Thomas
------------->
Index:linux-stable/include/linux/sched.h
===================================================================include/linux/sched.h +5
-0@@ -2144,6 +2144,7 @@ extern unsigned int sysctl_sched_cfs_ban#ifdef CONFIG_RT_MUTEXES extern int rt_mutex_getprio (struct task_struct *p);extern void rt_mutex_setprio (struct task_struct *p,int prio); +extern int rt_mutex_check_prio (struct task_struct *task,int newprio);extern void rt_mutex_adjust_pi (struct task_struct *p);static inline bool tsk_is_pi_blocked (struct task_struct *tsk) {@@ -2154,6 +2155,10 @@ static inline int rt_mutex_getprio(struc {return p->normal_prio; } +static inline int rt_mutex_check_prio (struct task_struct *task,int newprio) +{ +return 0 ; +}# define rt_mutex_adjust_pi (p) do { } while (0)static inline bool tsk_is_pi_blocked (struct task_struct *tsk){
Index:linux-stable/kernel/rtmutex.c
===================================================================kernel/rtmutex.c +12
-0@@ -124,6 +124,18 @@ int rt_mutex_getprio(struct task_struct }/* +* Called by sched_setscheduler() to check whether the priority change +* is overruled by a possible priority boosting. +*/ +int rt_mutex_check_prio (struct task_struct *task,int newprio) +{ +if (!task_has_pi_waiters (task)) +return 0 ; + +return task_top_pi_waiter (task)->pi_list_entry.prio <= newprio; +} + +/* * Adjust the priority of a task, after its pi_waiters got modified. * * This can be both boosting and unboosting. task->pi_lock must be held. Index:
linux-stable/kernel/sched/core.c
===================================================================kernel/sched/core.c +11
-7@@ -4236,7 +4236,8 @@ EXPORT_SYMBOL(sleep_on_timeout);* This function changes the 'effective' priority of a task. It does * not touch ->normal_prio like __setscheduler(). * -* Used by the rt_mutex code to implement priority inheritance logic. +* Used by the rt_mutex code to implement priority inheritance +* logic. Call site only calls if the priority of the task changed. */ void rt_mutex_setprio (struct task_struct *p,int prio) {@@ -4268,8 +4269,6 @@ void rt_mutex_setprio(struct task_structtrace_sched_pi_setprio (p, prio); oldprio = p->prio; -if (oldprio == prio) - goto out_unlock; prev_class = p->sched_class; on_rq = p->on_rq; running =task_current (rq, p);@@ -4461,20 +4460,25 @@ static struct task_struct *find_process_return pid ?find_task_by_vpid (pid) : current; } -/* Actually do priority change: must hold rq lock. */ -static void -__setscheduler (struct rq *rq,struct task_struct *p,int policy,int prio) +static void __setscheduler_params(struct task_struct *p, int policy, int prio) { p->policy = policy; p->rt_priority = prio; p->normal_prio =normal_prio (p); +set_load_weight (p); +} + +/* Actually do priority change: must hold rq lock. */ +static void +__setscheduler (struct rq *rq,struct task_struct *p,int policy,int prio) +{ +__setscheduler_params (p, policy, prio);/* we are holding p->pi_lock already */ p->prio =rt_mutex_getprio (p);if (rt_prio (p->prio)) p->sched_class = &rt_sched_class;else p->sched_class = &fair_sched_class; -set_load_weight (p);}
/*
kernel/sched/core.c +27
-9@@ -4496,6 +4500,7 @@ static bool check_same_owner(struct taskstatic int __sched_setscheduler (struct task_struct *p,int policy,const struct sched_param *param,bool user) { +int newprio =MAX_RT_PRIO -1 - param->sched_priority;int retval, oldprio, oldpolicy =-1 , on_rq, running;unsigned long flags;const struct sched_class *prev_class;@@ -4591,10 +4596,13 @@ recheck: }/* -* If not changing anything there's no need to proceed further: +* If not changing anything there's no need to proceed +* further, but store a possible modification of +* reset_on_fork. */ if (unlikely (policy == p->policy && (!rt_policy (policy) || param->sched_priority == p->rt_priority))) { + p->sched_reset_on_fork = reset_on_fork;task_rq_unlock (rq, p, &flags);return 0 ; }@@ -4622,10 +4630,22 @@ recheck: } p->sched_reset_on_fork = reset_on_fork; - oldprio = p->prio; -if (oldprio == param->sched_priority) - goto out; + +/* +* Special case for priority boosted tasks. +* +* If the new priority is lower or equal (user space view) +* than the current (boosted) priority, we just store the new +* normal parameters and do not touch the scheduler class and +* the runqueue. This will be done when the task deboost +* itself. +*/ +if (rt_mutex_check_prio (p, newprio)) { +__setscheduler_params (p, policy, param->sched_priority); +task_rq_unlock (rq, p, &flags); +return 0 ; + } on_rq = p->on_rq; running =task_current (rq, p);@@ -4639,12 +4659,14 @@ recheck:if (running) p->sched_class->set_curr_task (rq); -if (on_rq) -enqueue_task (rq, p, oldprio < param->sched_priority ? -ENQUEUE_HEAD :0 ); - +if (on_rq) { +/* +* We enqueue to tail when the priority of a task is +* increased (user space view). +*/ +enqueue_task (rq, p, oldprio <= p->prio ?ENQUEUE_HEAD :0 ); + }check_class_changed (rq, p, prev_class, oldprio); -out:task_rq_unlock (rq, p, &flags);rt_mutex_adjust_pi (p);Index: linux-stable/localversion-rt
===================================================================localversion-rt +1
-1@@ -1 +1 @@ --rt23 +-rt24Index:
linux-stable/block/blk-ioc.c
===================================================================block/blk-ioc.c +2
-3@@ -110,7 +110,7 @@ static void ioc_release_fn(struct work_sspin_unlock (q->queue_lock); }else {spin_unlock_irqrestore (&ioc->lock, flags); -cpu_relax (); +cpu_chill ();spin_lock_irqsave_nested (&ioc->lock, flags,1 ); } }@@ -188,7 +188,7 @@ retry:spin_unlock (icq->q->queue_lock); }else {spin_unlock_irqrestore (&ioc->lock, flags); -cpu_relax (); +cpu_chill (); goto retry; } } --To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html