diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-07-21 16:04:46 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-07-21 16:04:46 +0000 |
commit | 56906f9f7265c34d8cb0444e9246ed007ba52f4c (patch) | |
tree | 9ce72ea65e4500a6f3aa9f8103a7c142f346c052 /sys | |
parent | dc7f443ca4848bb6f3907a9ed6548e03259a27bc (diff) | |
download | FreeBSD-src-56906f9f7265c34d8cb0444e9246ed007ba52f4c.zip FreeBSD-src-56906f9f7265c34d8cb0444e9246ed007ba52f4c.tar.gz |
Don't sync the file system on panic by default. This seems to basically
work very infrequently, and often results in a compound panic which
confuses debugging; locking/SMP have made the layering violation (and
risks) of this more obvious over time.
Discussed with: green, bde, et al.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_shutdown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 05f6804..59340b3 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -98,7 +98,7 @@ SYSCTL_INT(_debug, OID_AUTO, trace_on_panic, CTLFLAG_RW, &trace_on_panic, 0, "Print stack trace on kernel panic"); #endif /* KDB */ -int sync_on_panic = 1; +int sync_on_panic = 0; SYSCTL_INT(_kern, OID_AUTO, sync_on_panic, CTLFLAG_RW, &sync_on_panic, 0, "Do a sync before rebooting from a panic"); |