Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Oct 2017 17:14:46 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r324412 - stable/11/sys/vm
Message-ID:  <201710081714.v98HEk1H086617@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sun Oct  8 17:14:45 2017
New Revision: 324412
URL: https://svnweb.freebsd.org/changeset/base/324412

Log:
  MFC r324173
    When an I/O error occurs on page out, there is no need to dirty the page,
    because it is already dirty.  Instead, assert that the page is dirty.

Modified:
  stable/11/sys/vm/swap_pager.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/swap_pager.c
==============================================================================
--- stable/11/sys/vm/swap_pager.c	Sun Oct  8 16:54:42 2017	(r324411)
+++ stable/11/sys/vm/swap_pager.c	Sun Oct  8 17:14:45 2017	(r324412)
@@ -1523,7 +1523,7 @@ swp_pager_async_iodone(struct buf *bp)
 				 * so it doesn't clog the inactive list,
 				 * then finish the I/O.
 				 */
-				vm_page_dirty(m);
+				MPASS(m->dirty == VM_PAGE_BITS_ALL);
 				vm_page_lock(m);
 				vm_page_activate(m);
 				vm_page_unlock(m);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710081714.v98HEk1H086617>