Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/kern Pull up version 1.132: do not consider B_READ ...



details:   https://anonhg.NetBSD.org/src/rev/d0dd7b35a049
branches:  netbsd-1-5
changeset: 488593:d0dd7b35a049
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Thu Jul 20 00:14:40 2000 +0000

description:
Pull up version 1.132: do not consider B_READ buffers to be busy at shutdown
(from Ethan Solomita).

diffstat:

 sys/kern/vfs_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 410730a08c4a -r d0dd7b35a049 sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c       Thu Jul 20 00:07:04 2000 +0000
+++ b/sys/kern/vfs_subr.c       Thu Jul 20 00:14:40 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_subr.c,v 1.128.2.2 2000/07/04 16:05:34 jdolecek Exp $      */
+/*     $NetBSD: vfs_subr.c,v 1.128.2.3 2000/07/20 00:14:40 fvdl Exp $  */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -2374,7 +2374,7 @@
        for (iter = 0; iter < 20; iter++) {
                nbusy = 0;
                for (bp = &buf[nbuf]; --bp >= buf; ) {
-                       if ((bp->b_flags & (B_BUSY|B_INVAL)) == B_BUSY)
+                       if ((bp->b_flags & (B_BUSY|B_INVAL|B_READ)) == B_BUSY)
                                nbusy++;
                        /*
                         * With soft updates, some buffers that are
@@ -2406,7 +2406,7 @@
 #if defined(DEBUG) || defined(DEBUG_HALT_BUSY)
                printf("giving up\nPrinting vnodes for busy buffers\n");
                for (bp = &buf[nbuf]; --bp >= buf; )
-                       if ((bp->b_flags & (B_BUSY|B_INVAL)) == B_BUSY)
+                       if ((bp->b_flags & (B_BUSY|B_INVAL|B_READ)) == B_BUSY)
                                vprint(NULL, bp->b_vp);
 
 #if defined(DDB) && defined(DEBUG_HALT_BUSY)



Home | Main Index | Thread Index | Old Index