Date: Tue, 14 Dec 2004 13:29:23 -0500 From: John Baldwin <jhb@FreeBSD.org> To: Jeff Roberson <jeff@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern sched_ule.c Message-ID: <200412141329.24069.jhb@FreeBSD.org> In-Reply-To: <200412141034.iBEAYRPu029498@repoman.freebsd.org> References: <200412141034.iBEAYRPu029498@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 14 December 2004 05:34 am, Jeff Roberson wrote: > jeff 2004-12-14 10:34:27 UTC > > FreeBSD src repository > > Modified files: > sys/kern sched_ule.c > Log: > - In kseq_choose(), don't recalculate slice values for processes with a > nice of 0. Doing so can cause an infinite loop because they should be > running, but a nice -20 process could prevent them from doing so. > - Add a new flag KEF_PRIOELEV to flag a thread that has had its priority > elevated due to priority propagation. If a thread has had its > priority elevated, we assume that it must go on the current queue and it > must get a slice. > - In sched_userret() if our priority was elevated and we shouldn't have > a timeslice, yield here until we should. > > Found/Tested by: glebius _Please_ look at my priority inversions patch that I sent you a month ago! I already have a flag for noting that a thread has bumped its priority and would appreciate it if you would review this before making more conflicts. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412141329.24069.jhb>