Date: Fri, 29 Apr 2016 17:35:28 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298790 - head/sys/vm Message-ID: <201604291735.u3THZSli057610@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Fri Apr 29 17:35:28 2016 New Revision: 298790 URL: https://svnweb.freebsd.org/changeset/base/298790 Log: Don't require write locks on the VM object for vm_page_prev/next. Reviewed by: kib Sponsored by: Chelsio Communications Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Fri Apr 29 16:32:28 2016 (r298789) +++ head/sys/vm/vm_page.c Fri Apr 29 17:35:28 2016 (r298790) @@ -1283,7 +1283,7 @@ vm_page_next(vm_page_t m) { vm_page_t next; - VM_OBJECT_ASSERT_WLOCKED(m->object); + VM_OBJECT_ASSERT_LOCKED(m->object); if ((next = TAILQ_NEXT(m, listq)) != NULL && next->pindex != m->pindex + 1) next = NULL; @@ -1301,7 +1301,7 @@ vm_page_prev(vm_page_t m) { vm_page_t prev; - VM_OBJECT_ASSERT_WLOCKED(m->object); + VM_OBJECT_ASSERT_LOCKED(m->object); if ((prev = TAILQ_PREV(m, pglist, listq)) != NULL && prev->pindex != m->pindex - 1) prev = NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604291735.u3THZSli057610>