On Fri, Apr 1, 2016 at 1:12 AM, Mateusz Guzik <m...@freebsd.org> wrote:

> Author: mjg
> Date: Wed Apr  1 08:10:00 2016
> New Revision: 280963
>

Next year should probably update the "New Revision" line...


> URL: https://svnweb.freebsd.org/changeset/base/297481
>
> Log:
>   Increase responsiveness under load by being more aggressive with
>   priority changes.
>
>   MFC after:    1 week
>
> Modified:
>   head/sys/kern/sched_ule.c
>
> Modified: head/sys/kern/sched_ule.c
> ===================================================================
> --- sys/kern/sched_ule.c        (revision 297480)
> +++ sys/kern/sched_ule.c        (working copy)
>

...and use the version number instead of "working copy".

-Ben


> @@ -1696,15 +1696,10 @@
>         }
>         ts = td->td_sched;
>         THREAD_LOCK_ASSERT(td, MA_OWNED);
> -       if (td->td_priority == prio)
> -               return;
>         /*
> -        * If the priority has been elevated due to priority
> -        * propagation, we may have to move ourselves to a new
> -        * queue.  This could be optimized to not re-add in some
> -        * cases.
> +        * DOES THIS WORK LOL
>          */
> -       if (TD_ON_RUNQ(td) && prio < td->td_priority) {
> +       if (TD_ON_RUNQ(td) && prio != td->td_priority) {
>                 sched_rem(td);
>                 td->td_priority = prio;
>                 sched_add(td, SRQ_BORROWING);
> _______________________________________________
> svn-src-...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-all
> To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
>
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to