Date: Mon, 21 Aug 1995 06:49:25 -0700 From: David Greenman <davidg@Root.COM> To: hackers@freebsd.org Subject: NFS_ASYNC (revisited for 2.2) Message-ID: <199508211349.GAA00899@corbin.Root.COM>
next in thread | raw e-mail | index | archive | help
Doug Rabson has pointed out that my NFS_ASYNC patch for 2.2 was inadequate and furthermore should only apply to NFSv2. Attached is a corrected patch. -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/21 13:46:48 *************** *** 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 */ *************** *** 731,736 **** --- 737,744 ---- nfsm_dissect(tl, u_long *, 4 * NFSX_UNSIGNED); off = (off_t)fxdr_unsigned(u_long, *++tl); tl += 2; + if (nfs_async) + stable = NFSV3WRITE_UNSTABLE; } retlen = len = fxdr_unsigned(long, *tl); cnt = i = 0; *************** *** 930,935 **** --- 938,945 ---- nfsm_dissect(tl, u_long *, 4 * NFSX_UNSIGNED); nfsd->nd_off = (off_t)fxdr_unsigned(u_long, *++tl); tl += 2; + if (nfs_async) + nfsd->nd_stable = NFSV3WRITE_UNSTABLE; } len = fxdr_unsigned(long, *tl); nfsd->nd_len = len;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508211349.GAA00899>