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.
This commit is contained in:
parent
e4a36f578d
commit
ea6ddab6a8
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mfs_vfsops.c,v 1.41 2002/09/21 18:14:51 christos Exp $ */
|
||||
/* $NetBSD: mfs_vfsops.c,v 1.42 2002/10/24 16:41:00 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1990, 1993, 1994
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mfs_vfsops.c,v 1.41 2002/09/21 18:14:51 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mfs_vfsops.c,v 1.42 2002/10/24 16:41:00 chs Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -264,8 +264,11 @@ mfs_mount(mp, path, data, ndp, p)
|
|||
* 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)
|
||||
|
|
Loading…
Reference in New Issue