Skip to contentSkip to conversation

smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu-fix.patch removed from -mm tree

folded-merged [email protected] 1 participant 1 message Jun 6, 2014

lore
Share & tools
lore
#0 lore raw

Subject: [folded-merged] smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 06 Jun 2014 14:06:24 -0700

The patch titled
Subject: smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu-fix
has been removed from the -mm tree. Its filename was
smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu-fix.patch

This patch was dropped because it was folded into smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu.patch

------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu-fix

correctly suppress warning output on second and later occurrences

Cc "Paul E. McKenney" <[email protected]>
Cc "Srivatsa S. Bhat" <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Gautham R Shenoy <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Oleg Nesterov <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Rafael J. Wysocki <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Rusty Russell <[email protected]>
Cc Srivatsa S. Bhat <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Tejun Heo <[email protected]>
Cc Thomas Gleixner <[email protected]>

---

 kernel/smp.c |   17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
kernel/smp.c renamed from kernel/smp.c~smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu-fix +7 -10
diff -puN kernel/smp.c~smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu-fix kernel/smp.c
@@ -185,20 +185,17 @@ void generic_smp_call_function_single_in
 {
 	struct llist_node *entry;
 	struct call_single_data *csd, *csd_next;
-	int warn = 0;
-
-	/*
-	 * Shouldn't receive this interrupt on a cpu that is not yet online.
-	 */
-	if (unlikely(!cpu_online(smp_processor_id()))) {
-		warn = 1;
-		WARN_ON_ONCE(1);
-	}
+	static bool warned;
 
 	entry = llist_del_all(&__get_cpu_var(call_single_queue));
 	entry = llist_reverse_order(entry);
 
-	if (unlikely(warn)) {
+	/*
+	 * Shouldn't receive this interrupt on a cpu that is not yet online.
+	 */
+	if (unlikely(!cpu_online(smp_processor_id()) && !warned)) {
+		warned = true;
+		WARN_ON(1);
 		/*
 		 * We don't have to use the _safe() variant here
 		 * because we are not invoking the IPI handlers yet.

_

Patches currently in -mm which might be from [email protected] are

origin.patch rtc-rtc-cmos-drivers-char-rtcc-features-for-decstation-support.patch rtc-da9063-rtc-driver.patch hfsplus-fixes-worst-case-unicode-to-char-conversion-of-file-names-and-attributes.patch hfsplus-correct-usage-of-hfsplus_attr_max_strlen-for-non-english-attributes.patch smp-print-more-useful-debug-info-upon-receiving-ipi-on-an-offline-cpu.patch sysctl-allow-for-strict-write-position-handling-fix-2.patch sysctl-allow-for-strict-write-position-handling-fix.patch sysctl-allow-for-strict-write-position-handling-fix-3.patch fs-pstore-logging-clean-up-fix.patch fs-devpts-inodec-convert-printk-to-pr_foo-fix.patch mm-mark-remap_file_pages-syscall-as-deprecated-fix.patch mm-replace-remap_file_pages-syscall-with-emulation-fix.patch ufs-sb-mutex-merge-mutex_destroy.patch