Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/nfs Pull up revisions 1.44-1.45 (requested by fvdl):



details:   https://anonhg.NetBSD.org/src/rev/61b35922e59d
branches:  netbsd-1-5
changeset: 490341:61b35922e59d
user:      he <he%NetBSD.org@localhost>
date:      Thu Dec 14 23:37:12 2000 +0000

description:
Pull up revisions 1.44-1.45 (requested by fvdl):
  Improve NFS performance, possibly with as much as 100% in
  throughput.  Please note: this implies a kernel interface change,
  VOP_FSYNC gains two arguments.

diffstat:

 sys/nfs/nfs_syscalls.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r b0f9212754ee -r 61b35922e59d sys/nfs/nfs_syscalls.c
--- a/sys/nfs/nfs_syscalls.c    Thu Dec 14 23:37:09 2000 +0000
+++ b/sys/nfs/nfs_syscalls.c    Thu Dec 14 23:37:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_syscalls.c,v 1.41.2.1 2000/10/24 04:17:49 tv Exp $ */
+/*     $NetBSD: nfs_syscalls.c,v 1.41.2.2 2000/12/14 23:37:12 he Exp $ */
 
 /*
  * Copyright (c) 1989, 1993
@@ -619,8 +619,9 @@
                         */
                        lockcount = p->p_locks;
 #endif
-                       if (writes_todo || (nd->nd_procnum == NFSPROC_WRITE &&
-                           nfsrvw_procrastinate > 0 && !notstarted))
+                       if (writes_todo || (!(nd->nd_flag & ND_NFSV3) &&
+                            nd->nd_procnum == NFSPROC_WRITE &&
+                            nfsrvw_procrastinate > 0 && !notstarted))
                            error = nfsrv_writegather(&nd, slp,
                                nfsd->nfsd_procp, &mreq);
                        else



Home | Main Index | Thread Index | Old Index