diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-05-27 08:25:54 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-05-27 08:25:54 +0000 |
commit | ad773037b93708839bd5fa89cf83039369638eff (patch) | |
tree | 3da97f24af1803763934159dce1b4363f872bb31 /sys/kern/vfs_subr.c | |
parent | 0a99ac541c9efe82ecb3093e40ca49530a202dc7 (diff) |
shutdown accounting before shutting down vfs. should prevent some panics.
ok david@ millert@ (iirc)
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index f1b368cd84d..192167e2d87 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.98 2004/04/25 02:48:03 itojun Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.99 2004/05/27 08:25:53 tedu Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -1790,11 +1790,15 @@ vfs_unmountall(void) void vfs_shutdown() { + extern void acct_shutdown(void); + /* XXX Should suspend scheduling. */ (void) spl0(); printf("syncing disks... "); + acct_shutdown(); + if (panicstr == 0) { /* Sync before unmount, in case we hang on something. */ sys_sync(&proc0, (void *)0, (register_t *)0); |