Date: Wed, 21 Dec 2016 09:15:26 +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-11@freebsd.org Subject: svn commit: r310357 - stable/11/sys/vm Message-ID: <201612210915.uBL9FQkR061723@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612210915.uBL9FQkR061723>