[kernel] r14447 - in dists/lenny/linux-2.6/debian: . patches/bugfix/all patches/series

Ben Hutchings benh at alioth.debian.org
Sun Oct 25 00:33:02 UTC 2009


Author: benh
Date: Sun Oct 25 00:32:59 2009
New Revision: 14447

Log:
Fix false soft lockup reports for the nohz idle loop

Added:
   dists/lenny/linux-2.6/debian/patches/bugfix/all/softlockup-fix-false-positives-on-nohz-idle.patch
   dists/lenny/linux-2.6/debian/patches/series/21
Modified:
   dists/lenny/linux-2.6/debian/changelog

Modified: dists/lenny/linux-2.6/debian/changelog
==============================================================================
--- dists/lenny/linux-2.6/debian/changelog	Sat Oct 24 20:16:54 2009	(r14446)
+++ dists/lenny/linux-2.6/debian/changelog	Sun Oct 25 00:32:59 2009	(r14447)
@@ -1,3 +1,10 @@
+linux-2.6 (2.6.26-21) UNRELEASED; urgency=low
+
+  [ Ben Hutchings ]
+  * Fix false soft lockup reports for the nohz idle loop
+
+ -- Ben Hutchings <ben at decadent.org.uk>  Sat, 24 Oct 2009 23:45:45 +0100
+
 linux-2.6 (2.6.26-20) stable; urgency=high
 
   [ Ben Hutchings ]

Added: dists/lenny/linux-2.6/debian/patches/bugfix/all/softlockup-fix-false-positives-on-nohz-idle.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/lenny/linux-2.6/debian/patches/bugfix/all/softlockup-fix-false-positives-on-nohz-idle.patch	Sun Oct 25 00:32:59 2009	(r14447)
@@ -0,0 +1,46 @@
+From 02ff375590ac4140d88afc76505df1ad45c6af59 Mon Sep 17 00:00:00 2001
+From: Ingo Molnar <mingo at elte.hu>
+Date: Mon, 12 May 2008 15:43:53 +0200
+Subject: [PATCH] softlockup: fix false positives on nohz if CPU is 100% idle for more than 60 seconds
+
+Fix (probably theoretical only) rq->clock update bug:
+in tick_nohz_update_jiffies() [which is called on all irq
+entry on all cpus where the irq entry hits an idle cpu] we
+call touch_softlockup_watchdog() before we update jiffies.
+That works fine most of the time when idle timeouts are within
+60 seconds. But when an idle timeout is beyond 60 seconds,
+jiffies is updated with a jump of more than 60 seconds,
+which causes a jump in cpu-clock of more than 60 seconds,
+triggering a false positive.
+
+Reported-by: David Miller <davem at davemloft.net>
+Signed-off-by: Ingo Molnar <mingo at elte.hu>
+---
+ kernel/time/tick-sched.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
+index b854a89..28abad6 100644
+--- a/kernel/time/tick-sched.c
++++ b/kernel/time/tick-sched.c
+@@ -133,8 +133,6 @@ void tick_nohz_update_jiffies(void)
+ 	if (!ts->tick_stopped)
+ 		return;
+ 
+-	touch_softlockup_watchdog();
+-
+ 	cpu_clear(cpu, nohz_cpu_mask);
+ 	now = ktime_get();
+ 	ts->idle_waketime = now;
+@@ -142,6 +140,8 @@ void tick_nohz_update_jiffies(void)
+ 	local_irq_save(flags);
+ 	tick_do_update_jiffies64(now);
+ 	local_irq_restore(flags);
++
++	touch_softlockup_watchdog();
+ }
+ 
+ void tick_nohz_stop_idle(int cpu)
+-- 
+1.6.4.3
+

Added: dists/lenny/linux-2.6/debian/patches/series/21
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/lenny/linux-2.6/debian/patches/series/21	Sun Oct 25 00:32:59 2009	(r14447)
@@ -0,0 +1 @@
++ bugfix/all/softlockup-fix-false-positives-on-nohz-idle.patch



More information about the Kernel-svn-changes mailing list