Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm unbusy a page after put it on the queue.
details: https://anonhg.NetBSD.org/src/rev/b36be5780393
branches: trunk
changeset: 545636:b36be5780393
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Apr 12 14:36:43 2003 +0000
description:
unbusy a page after put it on the queue.
fix a panic with UVM_PAGE_TRKOWN when doing swapoff.
diffstat:
sys/uvm/uvm_aobj.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r b18157684bf0 -r b36be5780393 sys/uvm/uvm_aobj.c
--- a/sys/uvm/uvm_aobj.c Sat Apr 12 14:26:58 2003 +0000
+++ b/sys/uvm/uvm_aobj.c Sat Apr 12 14:36:43 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_aobj.c,v 1.55 2003/02/09 22:28:40 pk Exp $ */
+/* $NetBSD: uvm_aobj.c,v 1.56 2003/04/12 14:36:43 yamt Exp $ */
/*
* Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.55 2003/02/09 22:28:40 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.56 2003/04/12 14:36:43 yamt Exp $");
#include "opt_uvmhist.h"
@@ -1461,8 +1461,6 @@
slot = uao_set_swslot(&aobj->u_obj, pageidx, 0);
uvm_swap_free(slot, 1);
- pg->flags &= ~(PG_BUSY|PG_CLEAN|PG_FAKE);
- UVM_PAGE_OWN(pg, NULL);
/*
* deactivate the page (to make sure it's on a page queue).
@@ -1471,5 +1469,9 @@
uvm_lock_pageq();
uvm_pagedeactivate(pg);
uvm_unlock_pageq();
+
+ pg->flags &= ~(PG_BUSY|PG_CLEAN|PG_FAKE);
+ UVM_PAGE_OWN(pg, NULL);
+
return FALSE;
}
Home |
Main Index |
Thread Index |
Old Index