Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/ufs/mfs Pull up revisions 1.29-1.30 (via patch, req...



details:   https://anonhg.NetBSD.org/src/rev/0c390d7637e1
branches:  netbsd-1-4
changeset: 471037:0c390d7637e1
user:      he <he%NetBSD.org@localhost>
date:      Fri Oct 13 18:14:41 2000 +0000

description:
Pull up revisions 1.29-1.30 (via patch, requested by simonb):
  Move handling of outstanding I/O requests to before the check for
  unmounting the file system.  Fixes PR#10122.

diffstat:

 sys/ufs/mfs/mfs_vfsops.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r 55b8fc05321b -r 0c390d7637e1 sys/ufs/mfs/mfs_vfsops.c
--- a/sys/ufs/mfs/mfs_vfsops.c  Fri Oct 13 17:42:53 2000 +0000
+++ b/sys/ufs/mfs/mfs_vfsops.c  Fri Oct 13 18:14:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mfs_vfsops.c,v 1.19 1999/02/26 23:44:50 wrstuden Exp $ */
+/*     $NetBSD: mfs_vfsops.c,v 1.19.2.1 2000/10/13 18:14:41 he Exp $   */
 
 /*
  * Copyright (c) 1989, 1990, 1993, 1994
@@ -287,6 +287,11 @@
 
        base = mfsp->mfs_baseoff;
        while (mfsp->mfs_buflist != (struct buf *)-1) {
+               while ((bp = mfsp->mfs_buflist) != NULL) {
+                       mfsp->mfs_buflist = bp->b_actf;
+                       mfs_doio(bp, base);
+                       wakeup((caddr_t)bp);
+               }
                /*
                 * If a non-ignored signal is received, try to unmount.
                 * If that fails, or the filesystem is already in the
@@ -301,12 +306,6 @@
                        sleepreturn = 0;
                        continue;
                }
-
-               while ((bp = mfsp->mfs_buflist) != NULL) {
-                       mfsp->mfs_buflist = bp->b_actf;
-                       mfs_doio(bp, base);
-                       wakeup((caddr_t)bp);
-               }
                sleepreturn = tsleep(vp, mfs_pri, "mfsidl", 0);
        }
        return (sleepreturn);



Home | Main Index | Thread Index | Old Index