From: Peter Zijlstra <peterz@infradead.org>
To: Kirill Tkhai <ktkhai@parallels.com>
Cc: linux-kernel@vger.kernel.org, Juri Lelli <juri.lelli@gmail.com>,
Ingo Molnar <mingo@redhat.com>,
tkhai@yandex.ru
Subject: Re: [PATCH tip] sched/rt: Fix picking RT and DL tasks from empty queue
Date: Wed, 5 Mar 2014 12:59:42 +0100 [thread overview]
Message-ID: <20140305115942.GX9987@twins.programming.kicks-ass.net> (raw)
In-Reply-To: <1393946746.3643.3.camel@tkhai>
On Tue, Mar 04, 2014 at 07:25:46PM +0400, Kirill Tkhai wrote:
> The problems:
>
> 1)We check for rt_nr_running before call of put_prev_task().
> If previous task is RT, its rt_rq may become throttled
> and dequeued after this call.
>
> In case of p is from rt->rq this just causes picking a task
> from throttled queue, but in case of its rt_rq is child
> we are guaranteed catch BUG_ON.
>
> 2)The same with deadline class. The only difference we operate
> on only dl_rq.
>
> This patch fix all above and it adds a small skip in DL update
> like we've already done for RT class:
>
> if (unlikely((s64)delta_exec <= 0))
> return;
>
> This will optimize sequential update_curr_dl() calls a little.
>
Ah indeed, good catch that. Thanks!
next prev parent reply other threads:[~2014-03-05 11:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-04 15:25 Kirill Tkhai
2014-03-05 11:59 ` Peter Zijlstra [this message]
2014-03-11 12:39 ` [tip:sched/core] " tip-bot for Kirill Tkhai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140305115942.GX9987@twins.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=juri.lelli@gmail.com \
--cc=ktkhai@parallels.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tkhai@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome