Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 2019 20:35:50 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r356026 - head/sys/vm
Message-ID:  <201912222035.xBMKZoXu077639@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jeff
Date: Sun Dec 22 20:35:50 2019
New Revision: 356026
URL: https://svnweb.freebsd.org/changeset/base/356026

Log:
  Fix a bug introduced in r356002.  Prior versions of this patchset had
  vm_page_remove() rather than !vm_page_wired() as the condition for free.
  When this changed back to wired the busy lock was leaked.
  
  Reported by:	pho
  Reviewed by:	markj

Modified:
  head/sys/vm/vm_fault.c

Modified: head/sys/vm/vm_fault.c
==============================================================================
--- head/sys/vm/vm_fault.c	Sun Dec 22 20:34:15 2019	(r356025)
+++ head/sys/vm/vm_fault.c	Sun Dec 22 20:35:50 2019	(r356026)
@@ -180,6 +180,8 @@ fault_page_free(vm_page_t *mp)
 		VM_OBJECT_ASSERT_WLOCKED(m->object);
 		if (!vm_page_wired(m))
 			vm_page_free(m);
+		else
+			vm_page_xunbusy(m);
 		*mp = NULL;
 	}
 }



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