From owner-freebsd-hackers Sun Aug 20 05:01:29 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id FAA26376 for hackers-outgoing; Sun, 20 Aug 1995 05:01:29 -0700 Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id FAA26364 for ; Sun, 20 Aug 1995 05:01:26 -0700 Received: from corbin.Root.COM (corbin [198.145.90.34]) by Root.COM (8.6.11/8.6.5) with ESMTP id FAA00200 for ; Sun, 20 Aug 1995 05:00:36 -0700 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.11/8.6.5) with SMTP id FAA00642 for ; Sun, 20 Aug 1995 05:02:17 -0700 Message-Id: <199508201202.FAA00642@corbin.Root.COM> To: hackers@freebsd.org Subject: NFS_ASYNC patch (for -current) From: David Greenman Reply-To: davidg@Root.COM Date: Sun, 20 Aug 1995 05:02:17 -0700 Sender: hackers-owner@freebsd.org Precedence: bulk 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);