Process priority is locked by the sched_lock, not the proc lock.

This commit is contained in:
John Baldwin 2001-09-01 20:16:30 +00:00
parent 7df97b6117
commit 29fdb744d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82756

View File

@ -118,9 +118,9 @@ vm_pagezero(void)
rtp.prio = RTP_PRIO_MAX;
rtp.type = RTP_PRIO_IDLE;
PROC_LOCK(p);
mtx_lock_spin(&sched_lock);
rtp_to_pri(&rtp, &p->p_pri);
PROC_UNLOCK(p);
mtx_unlock_spin(&sched_lock);
for (;;) {
if (vm_page_zero_check()) {