[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] nfsserver patch for review
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.
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);
Attachment:
pgpmFylz5po53.pgp
Description: PGP signature