Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Handle PG_PAGEOUT in uvm_anon_release() too.
details: https://anonhg.NetBSD.org/src/rev/cbb97a54d025
branches: trunk
changeset: 956243:cbb97a54d025
user: chs <chs%NetBSD.org@localhost>
date: Sun Oct 25 00:05:26 2020 +0000
description:
Handle PG_PAGEOUT in uvm_anon_release() too.
diffstat:
sys/uvm/uvm_anon.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 7dbce16d8ffd -r cbb97a54d025 sys/uvm/uvm_anon.c
--- a/sys/uvm/uvm_anon.c Sat Oct 24 23:27:33 2020 +0000
+++ b/sys/uvm/uvm_anon.c Sun Oct 25 00:05:26 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_anon.c,v 1.79 2020/07/09 05:57:15 skrll Exp $ */
+/* $NetBSD: uvm_anon.c,v 1.80 2020/10/25 00:05:26 chs Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_anon.c,v 1.79 2020/07/09 05:57:15 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_anon.c,v 1.80 2020/10/25 00:05:26 chs Exp $");
#include "opt_uvmhist.h"
@@ -371,6 +371,11 @@
KASSERT(pg->loan_count == 0);
KASSERT(anon->an_ref == 0);
+ if ((pg->flags & PG_PAGEOUT) != 0) {
+ pg->flags &= ~PG_PAGEOUT;
+ uvm_pageout_done(1);
+ }
+
uvm_pagefree(pg);
KASSERT(anon->an_page == NULL);
lock = anon->an_lock;
Home |
Main Index |
Thread Index |
Old Index