Do not do write gathering for NFSv3, since it makes no sense unless

the client is broken and does sync writes all the time.

Obtained from:	NetBSD (sys/nfs/nfs_syscalls.c,v 1.44)
Reviewed by:	-arch (bde)
This commit is contained in:
Xin LI 2005-03-26 11:29:02 +00:00
parent b4a12fe13b
commit a431ada687
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144141

View File

@ -463,7 +463,8 @@ nfssvc_nfsd(struct thread *td)
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);