Date: Thu, 8 Aug 2013 06:00:43 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r254086 - stable/9/sys/kern Message-ID: <201308080600.r7860hw5005721@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308080600.r7860hw5005721>