svn commit: r310357 - stable/11/sys/vm

Konstantin Belousov kib at FreeBSD.org
Wed Dec 21 09:15:27 UTC 2016


Author: kib
Date: Wed Dec 21 09:15:25 2016
New Revision: 310357
URL: https://svnweb.freebsd.org/changeset/base/310357

Log:
  MFC r310097:
  Remove locking around accounting initialization of the default object.

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

Modified: stable/11/sys/vm/default_pager.c
==============================================================================
--- stable/11/sys/vm/default_pager.c	Wed Dec 21 09:05:30 2016	(r310356)
+++ stable/11/sys/vm/default_pager.c	Wed Dec 21 09:15:25 2016	(r310357)
@@ -91,10 +91,8 @@ default_pager_alloc(void *handle, vm_oof
 	object = vm_object_allocate(OBJT_DEFAULT,
 	    OFF_TO_IDX(round_page(offset + size)));
 	if (cred != NULL) {
-		VM_OBJECT_WLOCK(object);
 		object->cred = cred;
 		object->charge = size;
-		VM_OBJECT_WUNLOCK(object);
 	}
 	return (object);
 }


More information about the svn-src-all mailing list