Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2001 12:29:36 +0400
From:      Alex Levine <sashkin@asplinux.ru>
To:        freebsd-stable@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Possible bug in scheduler.
Message-ID:  <3BCE92F0.8090809@asplinux.ru>

next in thread | raw e-mail | index | archive | help
FreeBSD 4-stable. Suspect the same in FreeBSD-current.

resetpriority() calls maybe_resched() at the end after updating p_usrpri 
based on changed p_estcpu.
maybe_resched() uses curpriority_cmp to compare priorities of current 
and given process and this function ( curpriority_cmp ) uses p_priority 
which is unchanged yet - the new p_usrpri is not reflected to p_priority 
yet.

I'd appreciate an answer from anybody who can assess this problem.
Regards Alex Levine.





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BCE92F0.8090809>