Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/uvm Pull up following revision(s) (requested by bou...



details:   https://anonhg.NetBSD.org/src/rev/8756246e4b1f
branches:  netbsd-2-0
changeset: 564904:8756246e4b1f
user:      riz <riz%NetBSD.org@localhost>
date:      Sun Nov 06 00:24:19 2005 +0000

description:
Pull up following revision(s) (requested by bouyer in ticket #5965):
        sys/uvm/uvm_glue.c: revision 1.90
remove the assertion in uvm_swapout_threads() about LSONPROC lwps
not running on the same CPU as the swapper.  l_stat is protected by
sched_lock, which isn't held here, so we can race with that lwp
starting to run and see its l_cpu not updated yet, as in PR 31870.
we check l_stat again in uvm_swapout() while holding sched_lock,
so the race itself is harmless.

diffstat:

 sys/uvm/uvm_glue.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 1bac13ff51e4 -r 8756246e4b1f sys/uvm/uvm_glue.c
--- a/sys/uvm/uvm_glue.c        Thu Nov 03 21:03:52 2005 +0000
+++ b/sys/uvm/uvm_glue.c        Sun Nov 06 00:24:19 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_glue.c,v 1.78 2004/03/24 07:50:48 junyoung Exp $   */
+/*     $NetBSD: uvm_glue.c,v 1.78.2.1 2005/11/06 00:24:19 riz Exp $    */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.78 2004/03/24 07:50:48 junyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.78.2.1 2005/11/06 00:24:19 riz Exp $");
 
 #include "opt_kgdb.h"
 #include "opt_kstack.h"
@@ -602,7 +602,6 @@
                        continue;
                switch (l->l_stat) {
                case LSONPROC:
-                       KDASSERT(l->l_cpu != curcpu());
                        continue;
 
                case LSRUN:



Home | Main Index | Thread Index | Old Index