? kern_exit.c.debug ? kern_exit.c.good ? kern_fork.c.works ? kern_sig.c.debug ? kern_sig.c.new ? kern_sig.c.older ? kern_sig.c.sigget ? old ? swap.diff Index: vfs_mount.c =================================================================== RCS file: /cvsroot/src/sys/kern/vfs_mount.c,v retrieving revision 1.42 diff -u -u -r1.42 vfs_mount.c --- vfs_mount.c 14 Dec 2016 15:46:57 -0000 1.42 +++ vfs_mount.c 14 Mar 2017 08:24:48 -0000 @@ -90,6 +90,8 @@ #include #include +#include + #include #include @@ -1041,6 +1043,14 @@ return; } +#if defined(_KERNEL) && !defined(_RUMPKERNEL) + /* + * We need to turn off swap first before we unmount + * /dev, because otherwise the spec_vnodes are bad. + */ + uvm_swap_shutdown(l); +#endif + /* Unmount file systems. */ vfs_unmountall(l); }