Date: Sun, 17 Apr 2005 16:25:36 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/nfsserver nfs.h nfs_serv.c Message-ID: <200504171625.j3HGPaDS075731@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2005-04-17 16:25:36 UTC FreeBSD src repository Modified files: sys/nfsserver nfs.h nfs_serv.c Log: 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 Revision Changes Path 1.78 +0 -4 src/sys/nfsserver/nfs.h 1.156 +23 -1 src/sys/nfsserver/nfs_serv.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504171625.j3HGPaDS075731>