summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2013-11-26 20:41:27 +0000
committerbeck <beck@openbsd.org>2013-11-26 20:41:27 +0000
commit0002f23b3925d55b571a2ab6a0a4df1eb50e7dd5 (patch)
tree88c1b8f9d24fce381bf77e6cd88f492cd5b07578
parentspelling; Kent R. Spillner (diff)
downloadwireguard-openbsd-0002f23b3925d55b571a2ab6a0a4df1eb50e7dd5.tar.xz
wireguard-openbsd-0002f23b3925d55b571a2ab6a0a4df1eb50e7dd5.zip
grow NFS request cache for the server side from 64 to 2048 entries.
FreeBSD did the corresponding change a while ago - the server request cache is used to avoid giving unnecessary failures to clients when a request is completed server side, but the client does not receive the result and therefore retries the request. This avoids errors like "file already exists" when the client tries to create files on a busy NFS server. ok krw@, tedu@, dcoppa@, deraadt@
-rw-r--r--sys/nfs/nfsrvcache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfsrvcache.h b/sys/nfs/nfsrvcache.h
index 18611d81526..993013b4756 100644
--- a/sys/nfs/nfsrvcache.h
+++ b/sys/nfs/nfsrvcache.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfsrvcache.h,v 1.7 2007/10/29 11:16:49 thib Exp $ */
+/* $OpenBSD: nfsrvcache.h,v 1.8 2013/11/26 20:41:27 beck Exp $ */
/* $NetBSD: nfsrvcache.h,v 1.10 1996/02/18 11:54:08 fvdl Exp $ */
/*
@@ -38,7 +38,7 @@
#ifndef _NFS_NFSRVCACHE_H_
#define _NFS_NFSRVCACHE_H_
-#define NFSRVCACHESIZ 64
+#define NFSRVCACHESIZ 2048
struct nfsrvcache {
TAILQ_ENTRY(nfsrvcache) rc_lru; /* LRU chain */