Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/mfs Bitbucket MFS I/O after vfs_shutdown has started..
details: https://anonhg.NetBSD.org/src/rev/875b29619f3c
branches: trunk
changeset: 487669:875b29619f3c
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Sun Jun 11 03:09:55 2000 +0000
description:
Bitbucket MFS I/O after vfs_shutdown has started..
diffstat:
sys/ufs/mfs/mfs_vnops.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 6daca1c34c8d -r 875b29619f3c sys/ufs/mfs/mfs_vnops.c
--- a/sys/ufs/mfs/mfs_vnops.c Sun Jun 11 02:41:10 2000 +0000
+++ b/sys/ufs/mfs/mfs_vnops.c Sun Jun 11 03:09:55 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfs_vnops.c,v 1.23 2000/05/19 20:42:21 thorpej Exp $ */
+/* $NetBSD: mfs_vnops.c,v 1.24 2000/06/11 03:09:55 sommerfeld Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -161,6 +161,14 @@
biodone(bp);
} else if (mfsp->mfs_proc == p) {
mfs_doio(bp, mfsp->mfs_baseoff);
+ } else if (doing_shutdown) {
+ /*
+ * bitbucket I/O during shutdown.
+ * Note that reads should *not* happen here, but..
+ */
+ if (bp->b_flags & B_READ)
+ printf("warning: mfs read during shutdown\n");
+ biodone(bp);
} else {
BUFQ_INSERT_TAIL(&mfsp->mfs_buflist, bp);
wakeup((caddr_t)vp);
Home |
Main Index |
Thread Index |
Old Index