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:
parent
660dab49e8
commit
e148e19ed6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user