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 revision 1.58 (requested by fvdl):



details:   https://anonhg.NetBSD.org/src/rev/cfc69a6b93a0
branches:  netbsd-1-5
changeset: 490336:cfc69a6b93a0
user:      he <he%NetBSD.org@localhost>
date:      Thu Dec 14 23:36:57 2000 +0000

description:
Pull up revision 1.58 (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_serv.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 1a2e922d5929 -r cfc69a6b93a0 sys/nfs/nfs_serv.c
--- a/sys/nfs/nfs_serv.c        Thu Dec 14 23:36:51 2000 +0000
+++ b/sys/nfs/nfs_serv.c        Thu Dec 14 23:36:57 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_serv.c,v 1.54 2000/03/30 12:51:15 augustss Exp $   */
+/*     $NetBSD: nfs_serv.c,v 1.54.4.1 2000/12/14 23:36:57 he Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -3061,10 +3061,6 @@
        nfsm_srvmtofh(fhp);
        nfsm_dissect(tl, u_int32_t *, 3 * NFSX_UNSIGNED);
 
-       /*
-        * XXX At this time VOP_FSYNC() does not accept offset and byte
-        * count parameters, so these arguments are useless (someday maybe).
-        */
        off = fxdr_hyper(tl);
        tl += 2;
        cnt = fxdr_unsigned(int, *tl);
@@ -3076,7 +3072,7 @@
                return (0);
        }
        for_ret = VOP_GETATTR(vp, &bfor, cred, procp);
-       error = VOP_FSYNC(vp, cred, FSYNC_WAIT, procp);
+       error = VOP_FSYNC(vp, cred, FSYNC_WAIT, off, off + cnt, procp);
        aft_ret = VOP_GETATTR(vp, &aft, cred, procp);
        vput(vp);
        nfsm_reply(NFSX_V3WCCDATA + NFSX_V3WRITEVERF);



Home | Main Index | Thread Index | Old Index