Date: Sun, 20 Aug 1995 05:02:17 -0700 From: David Greenman <davidg@Root.COM> To: hackers@freebsd.org Subject: NFS_ASYNC patch (for -current) Message-ID: <199508201202.FAA00642@corbin.Root.COM>
next in thread | raw e-mail | index | archive | help
This is the equivilent patch for 2.2-current. Again, add 'options NFS_ASYNC'
to your kernel config file to enable.
-DG
Index: nfs_serv.c
===================================================================
RCS file: /home/ncvs/src/sys/nfs/nfs_serv.c,v
retrieving revision 1.22
diff -c -r1.22 nfs_serv.c
*** 1.22 1995/08/06 11:55:25
--- nfs_serv.c 1995/08/20 05:40:34
***************
*** 92,97 ****
--- 92,103 ----
NFFIFO, NFNON };
int nfsrvw_procrastinate = NFS_GATHERDELAY * 1000;
+ #ifdef NFS_ASYNC
+ int nfs_async = 1;
+ #else
+ int nfs_async;
+ #endif
+
/*
* nfs v3 access service
*/
***************
*** 1060,1066 ****
error = nfsrv_access(vp, VWRITE, cred, rdonly, procp);
}
! if (nfsd->nd_stable == NFSV3WRITE_UNSTABLE)
ioflags = IO_NODELOCKED;
else if (nfsd->nd_stable == NFSV3WRITE_DATASYNC)
ioflags = (IO_SYNC | IO_NODELOCKED);
--- 1066,1072 ----
error = nfsrv_access(vp, VWRITE, cred, rdonly, procp);
}
! if (nfs_async || nfsd->nd_stable == NFSV3WRITE_UNSTABLE)
ioflags = IO_NODELOCKED;
else if (nfsd->nd_stable == NFSV3WRITE_DATASYNC)
ioflags = (IO_SYNC | IO_NODELOCKED);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508201202.FAA00642>
