Author: kib
Date: Thu Aug  8 06:00:42 2013
New Revision: 254086
URL: http://svnweb.freebsd.org/changeset/base/254086

Log:
  MFC r253187:
  Do not invalidate page of the B_NOCACHE buffer or buffer after an I/O
  error if any user wired mappings exist.

Modified:
  stable/9/sys/kern/vfs_bio.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/vfs_bio.c
==============================================================================
--- stable/9/sys/kern/vfs_bio.c Thu Aug  8 05:52:41 2013        (r254085)
+++ stable/9/sys/kern/vfs_bio.c Thu Aug  8 06:00:42 2013        (r254086)
@@ -1614,7 +1614,8 @@ brelse(struct buf *bp)
                                        (PAGE_SIZE - poffset) : resid;
 
                                KASSERT(presid >= 0, ("brelse: extra page"));
-                               vm_page_set_invalid(m, poffset, presid);
+                               if (pmap_page_wired_mappings(m) == 0)
+                                       vm_page_set_invalid(m, poffset, presid);
                                if (had_bogus)
                                        printf("avoided corruption bug in 
bogus_page/brelse code\n");
                        }
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to