Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/ufs/mfs Pull up revision 1.42 (requested by tron in...



details:   https://anonhg.NetBSD.org/src/rev/750ffd897358
branches:  netbsd-1-6
changeset: 529196:750ffd897358
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Nov 01 08:41:49 2002 +0000

description:
Pull up revision 1.42 (requested by tron in ticket #941):
the work-around in rev. 1.37 (turn off async) wasn't enough to prevent
hangs under heavy load.  so we now apply the more extreme version:
make MFS mounts "sync".  fixes PRs 17128 and 17321.

diffstat:

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

diffs (30 lines):

diff -r 6cfcce4d0c78 -r 750ffd897358 sys/ufs/mfs/mfs_vfsops.c
--- a/sys/ufs/mfs/mfs_vfsops.c  Fri Nov 01 08:28:34 2002 +0000
+++ b/sys/ufs/mfs/mfs_vfsops.c  Fri Nov 01 08:41:49 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mfs_vfsops.c,v 1.38 2002/03/04 02:25:24 simonb Exp $   */
+/*     $NetBSD: mfs_vfsops.c,v 1.38.8.1 2002/11/01 08:41:49 lukem Exp $        */
 
 /*
  * Copyright (c) 1989, 1990, 1993, 1994
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfs_vfsops.c,v 1.38 2002/03/04 02:25:24 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfs_vfsops.c,v 1.38.8.1 2002/11/01 08:41:49 lukem Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -240,8 +240,11 @@
         * the problem is that MFS needs to allocate pages to clean pages,
         * so if we wait until the last minute to clean pages then there
         * may not be any pages available to do the cleaning.
+        * ... and since the default partially-synchronous mode turns out
+        * to not be sufficient under heavy load, make it full synchronous.
         */
        mp->mnt_flag &= ~MNT_ASYNC;
+       mp->mnt_flag |= MNT_SYNCHRONOUS;
 
        error = copyin(data, (caddr_t)&args, sizeof (struct mfs_args));
        if (error)



Home | Main Index | Thread Index | Old Index