summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-04-06 17:47:22 +0000
committerjhb <jhb@FreeBSD.org>2011-04-06 17:47:22 +0000
commit96b1d8b6d77acdb5fb5d615776525213574ca4a1 (patch)
treee1a7d23b047f49d9788c92447c38bbdf67e1b7bc /sys/vm/vm_glue.c
parent1f9ba05458bd93ceac8e442ead548c21930d610b (diff)
downloadFreeBSD-src-96b1d8b6d77acdb5fb5d615776525213574ca4a1.zip
FreeBSD-src-96b1d8b6d77acdb5fb5d615776525213574ca4a1.tar.gz
Fix several places to ignore processes that are not yet fully constructed.
MFC after: 1 week
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r--sys/vm/vm_glue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 3ad8fe1..da9b1dc 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -747,7 +747,8 @@ loop:
sx_slock(&allproc_lock);
FOREACH_PROC_IN_SYSTEM(p) {
PROC_LOCK(p);
- if (p->p_flag & (P_SWAPPINGOUT | P_SWAPPINGIN | P_INMEM)) {
+ if (p->p_state == PRS_NEW ||
+ p->p_flag & (P_SWAPPINGOUT | P_SWAPPINGIN | P_INMEM)) {
PROC_UNLOCK(p);
continue;
}
OpenPOWER on IntegriCloud