Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/a0bab1353bed
branches:  netbsd-2
changeset: 564328:a0bab1353bed
user:      riz <riz%NetBSD.org@localhost>
date:      Sun Nov 06 00:24:15 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 19cd1f80d62b -r a0bab1353bed sys/uvm/uvm_glue.c
--- a/sys/uvm/uvm_glue.c        Thu Nov 03 21:04:07 2005 +0000
+++ b/sys/uvm/uvm_glue.c        Sun Nov 06 00:24:15 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.4.1 2005/11/06 00:24:15 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.4.1 2005/11/06 00:24:15 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