Subject: PR/31870 CVS commit: src/sys/uvm
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Chuck Silvers <chs@netbsd.org>
List: netbsd-bugs
Date: 10/24/2005 00:27:02
The following reply was made to PR kern/31870; it has been noted by GNATS.
From: Chuck Silvers <chs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/31870 CVS commit: src/sys/uvm
Date: Mon, 24 Oct 2005 00:26:37 +0000 (UTC)
Module Name: src
Committed By: chs
Date: Mon Oct 24 00:26:37 UTC 2005
Modified Files:
src/sys/uvm: uvm_glue.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -r1.89 -r1.90 src/sys/uvm/uvm_glue.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.