mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 06:14:27 +00:00
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:
parent
e1021dde8b
commit
46e38ce826
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132506
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue