Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Fix the other missing dirop wakeup



details:   https://anonhg.NetBSD.org/src/rev/f0eb2309e11c
branches:  trunk
changeset: 467821:f0eb2309e11c
user:      perseant <perseant%NetBSD.org@localhost>
date:      Mon Mar 29 21:54:26 1999 +0000

description:
Fix the other missing dirop wakeup

diffstat:

 sys/ufs/lfs/lfs_vnops.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 271124c36d19 -r f0eb2309e11c sys/ufs/lfs/lfs_vnops.c
--- a/sys/ufs/lfs/lfs_vnops.c   Mon Mar 29 21:51:38 1999 +0000
+++ b/sys/ufs/lfs/lfs_vnops.c   Mon Mar 29 21:54:26 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vnops.c,v 1.24 1999/03/25 22:33:03 perseant Exp $  */
+/*     $NetBSD: lfs_vnops.c,v 1.25 1999/03/29 21:54:26 perseant Exp $  */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -320,7 +320,8 @@
                if ((fs)->lfs_dirvcount > LFS_MAXDIROP) {               \
                        ++(fs)->lfs_writer;                             \
                        lfs_flush((fs),0);                              \
-                       --(fs)->lfs_writer;                             \
+                       if(--(fs)->lfs_writer==0)                       \
+                               wakeup(&(fs)->lfs_dirops);              \
                }                                                       \
        }                                                               \
 }



Home | Main Index | Thread Index | Old Index