[PATCH] nfsserver patch for review
Xin LI <[email protected]> Fri, 25 Mar 2005 02:08:45 +0800
| Newsgroups | gmane.os.freebsd.devel.audit |
|---|---|
| Message-ID | <[email protected]> |
--eAbsdosE1cNLO4uF Content-Type: multipart/mixed; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =46rom NetBSD: For nfs3 requests, don't gather writes since it's clients' responsibility. Will anyone object if I will commit this against -CURRENT? Thanks in advance! Cheers, --=20 Xin LI <delphij frontfree net> http://www.delphij.net/ See complete headers for GPG key and other information. --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-nfs Index: nfs_syscalls.c =================================================================== RCS file: /home/fcvs/src/sys/nfsserver/nfs_syscalls.c,v retrieving revision 1.102 diff -u -r1.102 nfs_syscalls.c --- nfs_syscalls.c 7 Jan 2005 01:45:51 -0000 1.102 +++ nfs_syscalls.c 24 Mar 2005 17:59:37 -0000 @@ -463,7 +463,8 @@ procrastinate = nfsrvw_procrastinate_v3; else procrastinate = nfsrvw_procrastinate; - if (writes_todo || (nd->nd_procnum == NFSPROC_WRITE && + if (writes_todo || (!(nd->nd_flag & ND_NFSV3) && + nd->nd_procnum == NFSPROC_WRITE && procrastinate > 0 && !notstarted)) error = nfsrv_writegather(&nd, slp, nfsd->nfsd_td, &mreq); --J/dobhs11T7y2rNN-- --eAbsdosE1cNLO4uF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCQwIt/cVsHxFZiIoRArz3AJ42DY98bCgCcxDvtwJHaKbD0yPK1QCfX30y 2xOD1Soe1H3m5l36vkL1BPc= =RDBV -----END PGP SIGNATURE----- --eAbsdosE1cNLO4uF--