Date: Sun, 8 Dec 2019 01:49:53 +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: r355516 - head/sys/vm Message-ID: <201912080149.xB81nrIo022206@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jeff Date: Sun Dec 8 01:49:53 2019 New Revision: 355516 URL: https://svnweb.freebsd.org/changeset/base/355516 Log: It is safe to wire a page while the object is busy. Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D22636 Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Sun Dec 8 01:49:03 2019 (r355515) +++ head/sys/vm/vm_page.c Sun Dec 8 01:49:53 2019 (r355516) @@ -3803,7 +3803,7 @@ vm_page_wire(vm_page_t m) KASSERT(m->object != NULL, ("vm_page_wire: page %p does not belong to an object", m)); - if (!vm_page_busied(m)) + if (!vm_page_busied(m) && !vm_object_busied(m->object)) VM_OBJECT_ASSERT_LOCKED(m->object); KASSERT((m->flags & PG_FICTITIOUS) == 0 || VPRC_WIRE_COUNT(m->ref_count) >= 1,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912080149.xB81nrIo022206>