Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jun 2020 03:31:46 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362360 - head/sys/vm
Message-ID:  <202006190331.05J3VkZa003123@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Jun 19 03:31:46 2020
New Revision: 362360
URL: https://svnweb.freebsd.org/changeset/base/362360

Log:
  Fix a double object unlock in vm_object_backing_collapse_wait().
  
  Reviewed by:	kib
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D25327

Modified:
  head/sys/vm/vm_object.c

Modified: head/sys/vm/vm_object.c
==============================================================================
--- head/sys/vm/vm_object.c	Fri Jun 19 01:04:25 2020	(r362359)
+++ head/sys/vm/vm_object.c	Fri Jun 19 03:31:46 2020	(r362360)
@@ -864,7 +864,6 @@ vm_object_backing_collapse_wait(vm_object_t object)
 		VM_OBJECT_WLOCK(backing_object);
 		if ((backing_object->flags & (OBJ_DEAD | OBJ_COLLAPSING)) == 0)
 			break;
-		VM_OBJECT_WUNLOCK(object);
 		vm_object_pip_sleep(backing_object, "vmbckwait");
 		counter_u64_add(object_collapse_waits, 1);
 		VM_OBJECT_WLOCK(object);



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