1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

- In sched_prio() only force us onto the current queue if our priority is

being elevated (numerically smaller).
This commit is contained in:
Jeff Roberson 2003-11-02 04:25:59 +00:00
parent 7d1a81b4dc
commit 769a363537
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121872

View File

@ -934,7 +934,8 @@ sched_prio(struct thread *td, u_char prio)
* queue. We still call adjustrunqueue below in case kse
* needs to fix things up.
*/
if (ke && (ke->ke_flags & KEF_ASSIGNED) == 0 &&
if (prio < td->td_priority && ke &&
(ke->ke_flags & KEF_ASSIGNED) == 0 &&
ke->ke_runq != KSEQ_CPU(ke->ke_cpu)->ksq_curr) {
runq_remove(ke->ke_runq, ke);
ke->ke_runq = KSEQ_CPU(ke->ke_cpu)->ksq_curr;