freebsd-skq/sys/nfsserver
rwatson 21db4509f1 NFS write gathering defers execution of NFS server write requests to wait
to see if additional write requests will arrive that can be coalesced and
clustered with earlier ones.  When doing so, it must determine whether
the two requests are made by credentials with the same access writes, so
as not to coalesce improperly.  NFSW_SAMECRED() implements a test of two
credentials using a binary compare.

Replace NFSW_SAMECRED() macro with nfsrv_samecred() function, which is
aware of the contents and layout of a struct ucred, rather than a simple
binary compare.  While the binary compare works when ucred is simply a
zero'd and embedded 'struct ucred' in the NFS descriptor, it will work
less well when the ucred associated with an NFS descriptor is "real", so
has defined and populated reference count, mutex, etc.

MFC after:	1 week
Obtained from:	TrustedBSD Project
2005-04-17 16:25:36 +00:00
..
nfs_serv.c NFS write gathering defers execution of NFS server write requests to wait 2005-04-17 16:25:36 +00:00
nfs_srvcache.c /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs_srvsock.c Now that we have a non blocking version of nfsm_dissect(), change all the 2005-01-19 22:53:40 +00:00
nfs_srvsubs.c avoid potential null ptr deref by free'ing excess mbufs instead of 2005-03-28 18:51:58 +00:00
nfs_syscalls.c Do not do write gathering for NFSv3, since it makes no sense unless 2005-03-26 11:29:02 +00:00
nfs.h NFS write gathering defers execution of NFS server write requests to wait 2005-04-17 16:25:36 +00:00
nfsm_subs.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfsrvcache.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfsrvstats.h /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00