svn commit: r229854 - in head: . sys/kern

Andriy Gapon avg at FreeBSD.org
Mon Jan 9 12:06:11 UTC 2012


Author: avg
Date: Mon Jan  9 12:06:09 2012
New Revision: 229854
URL: http://svn.freebsd.org/changeset/base/229854

Log:
  enable stop_scheduler_on_panic by default
  
  My plan is to make this behavior unconditional before 10.0 release.
  
  X-MFC after:	r228424 (if ever)

Modified:
  head/UPDATING
  head/sys/kern/kern_shutdown.c

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Mon Jan  9 12:06:02 2012	(r229853)
+++ head/UPDATING	Mon Jan  9 12:06:09 2012	(r229854)
@@ -22,6 +22,13 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 10
 	machines to maximize performance.  (To disable malloc debugging, run
 	ln -s aj /etc/malloc.conf.)
 
+20120109:
+	panic(9) now stops other CPUs in the SMP systems, disables interrupts
+	on the current CPU and prevents other threads from running.
+	This behavior can be reverted using the kern.stop_scheduler_on_panic
+	tunable/sysctl.
+	The new behavior can be incompatible with kern.sync_on_panic.
+
 20111215:
 	The carp(4) facility has been changed significantly. Configuration
 	of the CARP protocol via ifconfig(8) has changed, as well as format

Modified: head/sys/kern/kern_shutdown.c
==============================================================================
--- head/sys/kern/kern_shutdown.c	Mon Jan  9 12:06:02 2012	(r229853)
+++ head/sys/kern/kern_shutdown.c	Mon Jan  9 12:06:09 2012	(r229854)
@@ -123,7 +123,7 @@ SYSCTL_INT(_kern, OID_AUTO, sync_on_pani
 	&sync_on_panic, 0, "Do a sync before rebooting from a panic");
 TUNABLE_INT("kern.sync_on_panic", &sync_on_panic);
 
-static int stop_scheduler_on_panic = 0;
+static int stop_scheduler_on_panic = 1;
 SYSCTL_INT(_kern, OID_AUTO, stop_scheduler_on_panic, CTLFLAG_RW | CTLFLAG_TUN,
     &stop_scheduler_on_panic, 0, "stop scheduler upon entering panic");
 TUNABLE_INT("kern.stop_scheduler_on_panic", &stop_scheduler_on_panic);


More information about the svn-src-all mailing list