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 zap the non-pdpolicy bits in pg->pqflags.
details: https://anonhg.NetBSD.org/src/rev/1eb32c4f818e
branches: trunk
changeset: 1008026:1eb32c4f818e
user: ad <ad%NetBSD.org@localhost>
date: Sun Mar 08 15:01:50 2020 +0000
description:
Don't zap the non-pdpolicy bits in pg->pqflags.
diffstat:
sys/uvm/uvm_pdpolicy_clock.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (52 lines):
diff -r f07fa2f9e24a -r 1eb32c4f818e sys/uvm/uvm_pdpolicy_clock.c
--- a/sys/uvm/uvm_pdpolicy_clock.c Sun Mar 08 15:00:31 2020 +0000
+++ b/sys/uvm/uvm_pdpolicy_clock.c Sun Mar 08 15:01:50 2020 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: uvm_pdpolicy_clock.c,v 1.33 2020/02/23 15:46:43 ad Exp $ */
+/* $NetBSD: uvm_pdpolicy_clock.c,v 1.34 2020/03/08 15:01:50 ad Exp $ */
/* NetBSD: uvm_pdaemon.c,v 1.72 2006/01/05 10:47:33 yamt Exp $ */
/*-
- * Copyright (c) 2019 The NetBSD Foundation, Inc.
+ * Copyright (c) 2019, 2020 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
@@ -98,7 +98,7 @@
#else /* defined(PDSIM) */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pdpolicy_clock.c,v 1.33 2020/02/23 15:46:43 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pdpolicy_clock.c,v 1.34 2020/03/08 15:01:50 ad Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -455,7 +455,8 @@
TAILQ_INSERT_TAIL(&pdpol_state.s_inactiveq, pg, pdqueue);
pdpol_state.s_inactive++;
}
- pg->pqflags = (pg->pqflags & PQ_INTENT_QUEUED) | PQ_INACTIVE;
+ pg->pqflags &= ~(PQ_ACTIVE | PQ_INTENT_SET);
+ pg->pqflags |= PQ_INACTIVE;
}
void
@@ -486,7 +487,8 @@
uvmpdpol_pagedequeue_locked(pg);
TAILQ_INSERT_TAIL(&pdpol_state.s_activeq, pg, pdqueue);
pdpol_state.s_active++;
- pg->pqflags = (pg->pqflags & PQ_INTENT_QUEUED) | PQ_ACTIVE;
+ pg->pqflags &= ~(PQ_INACTIVE | PQ_INTENT_SET);
+ pg->pqflags |= PQ_ACTIVE;
}
void
@@ -517,7 +519,7 @@
KASSERT(pdpol_state.s_inactive > 0);
pdpol_state.s_inactive--;
}
- pg->pqflags &= PQ_INTENT_QUEUED;
+ pg->pqflags &= ~(PQ_ACTIVE | PQ_INACTIVE | PQ_INTENT_SET);
}
void
Home |
Main Index |
Thread Index |
Old Index