summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2005-04-01 02:54:57 +0000
committertedu <tedu@openbsd.org>2005-04-01 02:54:57 +0000
commit184019bc94583f92c479be369fbbaa8ed35cb661 (patch)
treec485bdb79ff0a407397dc268e47e177dfcbce7f9
parent0 -> prodidx. breakage for 5700 Bx workaround introduced in rev 1.21 (diff)
downloadwireguard-openbsd-184019bc94583f92c479be369fbbaa8ed35cb661.tar.xz
wireguard-openbsd-184019bc94583f92c479be369fbbaa8ed35cb661.zip
at long last, disable write gathering for v3. ok like everyone
-rw-r--r--sys/nfs/nfs_syscalls.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c
index db3d69bc958..7bf17ef9d96 100644
--- a/sys/nfs/nfs_syscalls.c
+++ b/sys/nfs/nfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_syscalls.c,v 1.43 2004/12/26 21:22:14 miod Exp $ */
+/* $OpenBSD: nfs_syscalls.c,v 1.44 2005/04/01 02:54:57 tedu Exp $ */
/* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */
/*
@@ -644,13 +644,14 @@ nfssvc_nfsd(nsd, argp, p)
do {
switch (cacherep) {
case RC_DOIT:
- if (writes_todo || (nd->nd_procnum == NFSPROC_WRITE &&
+ if (writes_todo || (!(nd->nd_flag & ND_NFSV3) &&
+ nd->nd_procnum == NFSPROC_WRITE &&
nfsrvw_procrastinate > 0))
- error = nfsrv_writegather(&nd, slp,
- nfsd->nfsd_procp, &mreq);
+ error = nfsrv_writegather(&nd, slp,
+ nfsd->nfsd_procp, &mreq);
else
- error = (*(nfsrv3_procs[nd->nd_procnum]))(nd,
- slp, nfsd->nfsd_procp, &mreq);
+ error = (*(nfsrv3_procs[nd->nd_procnum]))(nd,
+ slp, nfsd->nfsd_procp, &mreq);
if (mreq == NULL)
break;
if (error) {