diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-09-02 18:20:55 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-09-02 18:20:55 +0000 |
commit | 17a472fb8f7ec24b10b391b1db7dc7d2998bdec8 (patch) | |
tree | 6f2cdeeac65b655ebe48a2373bb695b3a730fb84 /sys/nfs/nfs.h | |
parent | 64dce1b62dbae5d0b90eb2fd54e23a0eeacbdf4d (diff) |
Backout the asyncio/aiod change, as it causes buf's to get hung.
problem noticed by deraadt@
ok beck@
Diffstat (limited to 'sys/nfs/nfs.h')
-rw-r--r-- | sys/nfs/nfs.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/nfs/nfs.h b/sys/nfs/nfs.h index c3bb1ca00a2..1dcaa29cbcf 100644 --- a/sys/nfs/nfs.h +++ b/sys/nfs/nfs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs.h,v 1.50 2009/08/25 13:41:29 thib Exp $ */ +/* $OpenBSD: nfs.h,v 1.51 2009/09/02 18:20:54 thib Exp $ */ /* $NetBSD: nfs.h,v 1.10.4.1 1996/05/27 11:23:56 fvdl Exp $ */ /* @@ -55,8 +55,7 @@ #define NFS_READDIRSIZE 8192 /* Def. readdir size */ #define NFS_DEFRAHEAD 1 /* Def. read ahead # blocks */ #define NFS_MAXRAHEAD 4 /* Max. read ahead # blocks */ -#define NFS_MAXASYNCDAEMON 64 /* Max. # of aiods runnable. */ -#define NFS_DEFASYNCDAEMON 4 /* Def. # of aiods runnable. */ +#define NFS_MAXASYNCDAEMON 20 /* Max. number async_daemons runable */ /* * Ideally, NFS_DIRBLKSIZ should be bigger, but I've seen servers with @@ -190,6 +189,8 @@ struct nfsstats { * by them and break. */ #ifdef _KERNEL +extern int nfs_niothreads; + struct uio; struct buf; struct vattr; struct nameidata; /* XXX */ #define NFSINT_SIGMASK (sigmask(SIGINT)|sigmask(SIGTERM)|sigmask(SIGKILL)| \ |