On 8 May 2015 at 04:51, Masao Uebayashi <[email protected]> wrote: > By doing complex VFS shutdown operation, the system's memory image will > be modified a lot since a panic was triggered. I'd totally skip > vfs_shutdown() after a panic [1], then do the best to dump a kernel core > for analysis. > > [1] OpenBSD's panic(9) sets RB_NOSYNC only when panicstr is already set > (== recursive panic()) at this moment.
This is also a valid point of view and in fact I was surprised to see sys_sync called from vfs_syncwait, esp. since it's doing uvm_vnp_sync. But on the other hand it has been there for 20 years in OpenBSD and who knows how many years before that in *BSD and we got used to relying on this behavior, didn't we?
