NFS server: Import various fixes from FreeBSD.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Sat, 24 Dec 2011 18:16:53 +0000 (10:16 -0800)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Sat, 24 Dec 2011 18:16:53 +0000 (10:16 -0800)
commita084b5c3be79264af0d0802982069fbab7309989
tree03285efaded0f7eb189d9b0ebb41d39b743e6880
parent3532d243378af59fab161981b3e579e1e99bf978
NFS server: Import various fixes from FreeBSD.

* Rev 228520: Honor NFSv3 commit call when count = 0. (delphij)

* Rev 228185: Enhance sequential access heuristic used for readahead
              and reuse it for writes as well.
        * Use a prime number for sequential detection table
        * Factor our sequential detection code
        * Ramp up sequential heurstic quickly based on IO size.

        This patch differs from the FreeBSD version in that we rapidly
        decay the sequential heuristic as in the original code and don't
        attempt to deal with reordered RPCs.

* Rev 159871: Size the NFS server dupreq cache on the basis of nmbclusters.
This patch differs from the FreeBSD version in that we don't
alter the desired cache size based on nmbcluster change events.

* Rev 116789: Bug in nfsrv_read() that caused the replies to certain NFSv3
short read operations at the end of a file to not have the "eof"
flag set. (iedowse)
sys/vfs/nfs/nfs_serv.c
sys/vfs/nfs/nfs_srvcache.c
sys/vfs/nfs/nfsrvcache.h