Index: vm/vm_glue.c =================================================================== RCS file: /home/ncvs/src/sys/vm/vm_glue.c,v retrieving revision 1.159 diff -u -r1.159 vm_glue.c --- vm/vm_glue.c 22 Oct 2002 14:31:32 -0000 1.159 +++ vm/vm_glue.c 15 Dec 2002 00:41:53 -0000 @@ -678,7 +678,9 @@ * a process has P_SYSTEM. */ PROC_LOCK(p); - if ((p->p_flag & P_SYSTEM) != 0) { + if (p->p_lock != 0 || + (p->p_flag & (P_TRACED|P_SYSTEM|P_WEXIT)) != 0 || + (p->p_flag & P_STOPPED_SINGLE) != 0) { PROC_UNLOCK(p); continue; } @@ -704,11 +706,6 @@ goto nextproc1; PROC_LOCK(p); - if (p->p_lock != 0 || - (p->p_flag & (P_STOPPED_SINGLE|P_TRACED|P_SYSTEM|P_WEXIT) - ) != 0) { - goto nextproc2; - } /* * only aiod changes vmspace, however it will be * skipped because of the if statement above checking @@ -792,7 +789,6 @@ } nextproc: mtx_unlock_spin(&sched_lock); -nextproc2: PROC_UNLOCK(p); vm_map_unlock(&vm->vm_map); nextproc1: