[kernel/f19] Only print "bad: scheduling from the idle thread" warning once.

Dave Jones davej at fedoraproject.org
Thu Mar 21 14:49:47 UTC 2013


commit 4093611836b0b6352ff3bfc732157bf8aac49634
Author: Dave Jones <davej at redhat.com>
Date:   Thu Mar 21 10:49:36 2013 -0400

    Only print "bad: scheduling from the idle thread" warning once.

 debug-idle-sched-warn-once.patch |   19 +++++++++++++++++++
 kernel.spec                      |    7 ++++++-
 2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/debug-idle-sched-warn-once.patch b/debug-idle-sched-warn-once.patch
new file mode 100644
index 0000000..a2e873c
--- /dev/null
+++ b/debug-idle-sched-warn-once.patch
@@ -0,0 +1,19 @@
+Instead of spewing this over and over, and scrolling useful info
+off the screen, just print it once.
+
+--- linux-3.9.0-0.rc3.git0.2.fc19.x86_64/kernel/sched/idle_task.c~	2013-03-21 10:44:17.935087323 -0400
++++ linux-3.9.0-0.rc3.git0.2.fc19.x86_64/kernel/sched/idle_task.c	2013-03-21 10:44:41.936092782 -0400
+@@ -35,6 +35,13 @@ static struct task_struct *pick_next_tas
+ static void
+ dequeue_task_idle(struct rq *rq, struct task_struct *p, int flags)
+ {
++	static bool once = FALSE;
++
++	if (once == TRUE)
++		return;
++
++	once = TRUE;
++
+ 	raw_spin_unlock_irq(&rq->lock);
+ 	printk(KERN_ERR "bad: scheduling from the idle thread!\n");
+ 	dump_stack();
diff --git a/kernel.spec b/kernel.spec
index 1d099e8..8cc0ae9 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -62,7 +62,7 @@ Summary: The Linux kernel
 # For non-released -rc kernels, this will be appended after the rcX and
 # gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
 #
-%global baserelease 2
+%global baserelease 3
 %global fedora_build %{baserelease}
 
 # base_sublevel is the kernel version we're starting with and patching
@@ -747,6 +747,7 @@ Patch21276: mac80211-Dont-restart-sta-timer-if-not-running.patch
 Patch21275: VMX-x86-handle-host-TSC-calibration-failure.patch
 
 Patch22000: weird-root-dentry-name-debug.patch
+Patch22010: debug-idle-sched-warn-once.patch
 
 #selinux ptrace child permissions
 Patch22001: selinux-apply-different-permission-to-ptrace-child.patch
@@ -1414,6 +1415,7 @@ ApplyPatch lis3-improve-handling-of-null-rate.patch
 ApplyPatch scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
 
 ApplyPatch weird-root-dentry-name-debug.patch
+ApplyPatch debug-idle-sched-warn-once.patch
 
 #selinux ptrace child permissions
 ApplyPatch selinux-apply-different-permission-to-ptrace-child.patch
@@ -2281,6 +2283,9 @@ fi
 # and build.
 
 %changelog
+* Thu Mar 21 2013 Dave Jones <davej at redhat.com> - 3.9.0-0.rc3.git1.2
+- Only print "bad: scheduling from the idle thread" warning once.
+
 * Thu Mar 21 2013 Josh Boyer <jwboyer at redhat.com>
 - Fix workqueue crash in mac80211 (rhbz 920218)
 


More information about the scm-commits mailing list