on write, be sure to flush the vnode from the VM object cache
authorMike Hibler <hibler@ucbvax.Berkeley.EDU>
Thu, 9 Jun 1994 07:00:16 +0000 (23:00 -0800)
committerMike Hibler <hibler@ucbvax.Berkeley.EDU>
Thu, 9 Jun 1994 07:00:16 +0000 (23:00 -0800)
SCCS-vsn: sys/nfs/nfs_bio.c 8.6

usr/src/sys/nfs/nfs_bio.c

index 10693c8..9d6a234 100644 (file)
@@ -7,7 +7,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)nfs_bio.c   8.5 (Berkeley) %G%
+ *     @(#)nfs_bio.c   8.6 (Berkeley) %G%
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -388,6 +388,11 @@ nfs_write(ap)
        biosize = nmp->nm_rsize;
        do {
 
        biosize = nmp->nm_rsize;
        do {
 
+               /*
+                * XXX make sure we aren't cached in the VM page cache
+                */
+               (void)vnode_pager_uncache(vp);
+
                /*
                 * Check for a valid write lease.
                 * If non-cachable, just do the rpc
                /*
                 * Check for a valid write lease.
                 * If non-cachable, just do the rpc