summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_socket.c
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2009-08-10 09:38:44 +0000
committerthib <thib@openbsd.org>2009-08-10 09:38:44 +0000
commita57b0483d0bd619fde1f8dc8ae63cd8af79f4254 (patch)
treefecb595bf04e57bb463c662b58fa260433e73039 /sys/nfs/nfs_socket.c
parentThe only caller of NFSMSIZ got changed yesterday, so remove it. (diff)
downloadwireguard-openbsd-a57b0483d0bd619fde1f8dc8ae63cd8af79f4254.tar.xz
wireguard-openbsd-a57b0483d0bd619fde1f8dc8ae63cd8af79f4254.zip
Remove the v2 writegather code. It did help alot back in the 80s
but extensive performance benchmarking done by myself and jasper@ has shown that it doesn't help, at all - even on vaxens and in some cases it makes things significantly slower. "this excites me sexually" jetpack@ Tested by jasper@. OK blambert@
Diffstat (limited to 'sys/nfs/nfs_socket.c')
-rw-r--r--sys/nfs/nfs_socket.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c
index 85001370b0e..63f4c2c604d 100644
--- a/sys/nfs/nfs_socket.c
+++ b/sys/nfs/nfs_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_socket.c,v 1.93 2009/08/04 17:12:39 thib Exp $ */
+/* $OpenBSD: nfs_socket.c,v 1.94 2009/08/10 09:38:44 thib Exp $ */
/* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */
/*
@@ -1151,10 +1151,6 @@ nfs_timer(arg)
struct nfsmount *nmp;
int timeo;
int s, error;
-#ifdef NFSSERVER
- struct nfssvc_sock *slp;
- struct timeval tv;
-#endif
s = splsoftnet();
TAILQ_FOREACH(rep, &nfs_reqq, r_chain) {
@@ -1240,19 +1236,6 @@ nfs_timer(arg)
}
}
}
-
-#ifdef NFSSERVER
- /*
- * Scan the write gathering queues for writes that need to be
- * completed now.
- */
- getmicrotime(&tv);
- TAILQ_FOREACH(slp, &nfssvc_sockhead, ns_chain) {
- if (LIST_FIRST(&slp->ns_tq) &&
- timercmp(&LIST_FIRST(&slp->ns_tq)->nd_time, &tv, <=))
- nfsrv_wakenfsd(slp);
- }
-#endif /* NFSSERVER */
splx(s);
timeout_add(to, nfs_ticks);
}
@@ -1565,8 +1548,6 @@ nfs_getreq(nd, nfsd, has_header)
else
tl++;
nd->nd_cr.cr_ngroups = (len > NGROUPS) ? NGROUPS : len;
- if (nd->nd_cr.cr_ngroups > 1)
- nfsrvw_sort(nd->nd_cr.cr_groups, nd->nd_cr.cr_ngroups);
len = fxdr_unsigned(int, *++tl);
if (len < 0 || len > RPCAUTH_MAXSIZ) {
m_freem(info.nmi_mrep);