summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfsserver
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2015-04-30 12:44:20 +0000
committerrmacklem <rmacklem@FreeBSD.org>2015-04-30 12:44:20 +0000
commitde0424ce2628044461b3970c30ea52cd23d4a937 (patch)
treef41eba473f204c65db3fdb1264d7d97013acb15f /sys/fs/nfsserver
parentfba63dddeb47d7daf52036b191fc27d0b34cb02b (diff)
downloadFreeBSD-src-de0424ce2628044461b3970c30ea52cd23d4a937.zip
FreeBSD-src-de0424ce2628044461b3970c30ea52cd23d4a937.tar.gz
MFC: r281628
mav@ has found that NFS servers exporting ZFS file systems can perform better when using a 128K read/write data size. This patch changes NFS_MAXDATA from 64K to 128K so that clients can use 128K for NFS mounts to allow this. The patch also renames NFS_MAXDATA to NFS_SRVMAXIO so that it is clear that it applies to the NFS server side only. It also avoids a name conflict with the NFS_MAXDATA defined in rpcsvc/nfs_prot.h, that is used for userland RPC.
Diffstat (limited to 'sys/fs/nfsserver')
-rw-r--r--sys/fs/nfsserver/nfs_nfsdserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfsserver/nfs_nfsdserv.c b/sys/fs/nfsserver/nfs_nfsdserv.c
index 2bd0683..bca0cde 100644
--- a/sys/fs/nfsserver/nfs_nfsdserv.c
+++ b/sys/fs/nfsserver/nfs_nfsdserv.c
@@ -870,7 +870,7 @@ nfsrvd_write(struct nfsrv_descript *nd, __unused int isdgram,
i = mbuf_len(mp);
}
- if (retlen > NFS_MAXDATA || retlen < 0)
+ if (retlen > NFS_SRVMAXIO || retlen < 0)
nd->nd_repstat = EIO;
if (vnode_vtype(vp) != VREG && !nd->nd_repstat) {
if (nd->nd_flag & ND_NFSV3)
OpenPOWER on IntegriCloud