summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2005-11-01 14:18:15 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2005-11-01 14:18:15 +0000
commit2b7a3ce7a7193440d82159c53e1940d9a69c652a (patch)
treead2cb36853578e419bd5311f54d087cfa7c0ccff
parent960384dcc2333d7389c59c64cfbb8f0861183b61 (diff)
In uvm_swapout(), protect "p->p_swtime = 0;" with SCHED_LOCK() as is already
done in uvm_swapin(). Looks like this was a mistake made while editing. No response from art@. deraadt@, miod@, pedro@ ok
-rw-r--r--sys/uvm/uvm_glue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_glue.c b/sys/uvm/uvm_glue.c
index 791921b6763..9ac9098ed85 100644
--- a/sys/uvm/uvm_glue.c
+++ b/sys/uvm/uvm_glue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_glue.c,v 1.42 2005/05/31 11:35:33 art Exp $ */
+/* $OpenBSD: uvm_glue.c,v 1.43 2005/11/01 14:18:14 aaron Exp $ */
/* $NetBSD: uvm_glue.c,v 1.44 2001/02/06 19:54:44 eeh Exp $ */
/*
@@ -586,8 +586,8 @@ uvm_swapout(p)
p->p_flag &= ~P_INMEM;
if (p->p_stat == SRUN)
remrunqueue(p);
- SCHED_UNLOCK(s);
p->p_swtime = 0;
+ SCHED_UNLOCK(s);
++uvmexp.swapouts;
/*