Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Don't require a write lock for page enqueue/activate...
details: https://anonhg.NetBSD.org/src/rev/d9a9c8757103
branches: trunk
changeset: 1008208:d9a9c8757103
user: ad <ad%NetBSD.org@localhost>
date: Sat Mar 14 21:06:35 2020 +0000
description:
Don't require a write lock for page enqueue/activate/deactivate.
diffstat:
sys/uvm/uvm_page.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 9b7febd66fab -r d9a9c8757103 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Sat Mar 14 20:48:40 2020 +0000
+++ b/sys/uvm/uvm_page.c Sat Mar 14 21:06:35 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.231 2020/03/14 20:23:51 ad Exp $ */
+/* $NetBSD: uvm_page.c,v 1.232 2020/03/14 21:06:35 ad Exp $ */
/*-
* Copyright (c) 2019, 2020 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.231 2020/03/14 20:23:51 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.232 2020/03/14 21:06:35 ad Exp $");
#include "opt_ddb.h"
#include "opt_uvm.h"
@@ -1908,7 +1908,7 @@
uvm_pagedeactivate(struct vm_page *pg)
{
- KASSERT(uvm_page_owner_locked_p(pg, true));
+ KASSERT(uvm_page_owner_locked_p(pg, false));
KASSERT(mutex_owned(&pg->interlock));
if (pg->wire_count == 0) {
KASSERT(uvmpdpol_pageisqueued_p(pg));
@@ -1927,7 +1927,7 @@
uvm_pageactivate(struct vm_page *pg)
{
- KASSERT(uvm_page_owner_locked_p(pg, true));
+ KASSERT(uvm_page_owner_locked_p(pg, false));
KASSERT(mutex_owned(&pg->interlock));
#if defined(READAHEAD_STATS)
if ((pg->flags & PG_READAHEAD) != 0) {
@@ -1968,7 +1968,7 @@
uvm_pageenqueue(struct vm_page *pg)
{
- KASSERT(uvm_page_owner_locked_p(pg, true));
+ KASSERT(uvm_page_owner_locked_p(pg, false));
KASSERT(mutex_owned(&pg->interlock));
if (pg->wire_count == 0 && !uvmpdpol_pageisqueued_p(pg)) {
uvmpdpol_pageenqueue(pg);
Home |
Main Index |
Thread Index |
Old Index