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.
This commit is contained in:
Robert Watson 2004-07-21 16:04:46 +00:00
parent e1021dde8b
commit 46e38ce826
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132506

View file

@ -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");