[PATCH] nfsserver patch for review
Xin LI
delphij at frontfree.net
Thu Mar 24 10:09:04 PST 2005
From 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,
--
Xin LI <delphij frontfree net> http://www.delphij.net/
See complete headers for GPG key and other information.
-------------- next part --------------
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-audit/attachments/20050325/d66ca5e1/attachment.bin
More information about the freebsd-audit
mailing list