]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Asynchronized client-side nfs_commit. NFS commit operations were
authordillon <dillon@FreeBSD.org>
Fri, 17 Sep 1999 05:57:57 +0000 (05:57 +0000)
committerdillon <dillon@FreeBSD.org>
Fri, 17 Sep 1999 05:57:57 +0000 (05:57 +0000)
commit581716d4dfa79a615e2d311e2da0b1eca85bb5b6
treeca5c480c585acbc3d10eb3b4ab470a7596253dbb
parent4c1e280de7db1d524317194a371a5d246f0f5cfa
Asynchronized client-side nfs_commit.  NFS commit operations were
    previously issued synchronously even if async daemons (nfsiod's) were
    available.  The commit has been moved from the strategy code to the doio
    code in order to asynchronize it.

    Removed use of lastr in preparation for removal of vnode->v_lastr.  It
    has been replaced with seqcount, which is already supported by the system
    and, in fact, gives us a better heuristic for sequential detection then
    lastr ever did.

    Made major performance improvements to the server side commit.  The
    server previously fsync'd the entire file for each commit rpc.  The
    server now bawrite()s only those buffers related to the offset/size
    specified in the commit rpc.

    Note that we do not commit the meta-data yet.  This works still needs
    to be done.

    Note that a further optimization can be done (and has not yet been done)
    on the client: we can merge multiple potential commit rpc's into a
    single rpc with a greater file offset/size range and greatly reduce
    rpc traffic.

Reviewed by: Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
12 files changed:
sys/nfs/nfs.h
sys/nfs/nfs_bio.c
sys/nfs/nfs_serv.c
sys/nfs/nfs_vnops.c
sys/nfsclient/nfs.h
sys/nfsclient/nfs_bio.c
sys/nfsclient/nfs_vnops.c
sys/nfsclient/nfsargs.h
sys/nfsclient/nfsstats.h
sys/nfsserver/nfs.h
sys/nfsserver/nfs_serv.c
sys/nfsserver/nfsrvstats.h