public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Esben Nielsen <nielsen.esben@googlemail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	linux-kernel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>
Subject: Re: New PriorityInheritanceTest - bug in 2.6.17-rt7 confirmed
Date: Thu, 6 Jul 2006 15:32:38 +0200	[thread overview]
Message-ID: <20060706133238.GA13800@elte.hu> (raw)
In-Reply-To: <Pine.LNX.4.64.0607061443050.30970@localhost.localdomain>


* Esben Nielsen <nielsen.esben@googlemail.com> wrote:

> It can run within try_to_wake_up(). But then it the whole lock chain 
> is traversed in an atomic section. That unpredictable overall system 
> latencies since the locks can be in userspace. So it has to run in 
> some task. That task has to be high priority enough to preempt the 
> boosted tasks, but it can't be so high priority that it bothers any 
> higher priority threads than those involved in this. So it can't be, 
> forinstance a general priority 99 task we just use for this. We thus 
> need something running at a slightly higher priority than the priority 
> to which the tasks are boosted, but not a full +1 priority. I.e. we 
> need to run it at priority "+0.5".

we could just queue the task in front of the other task in the runqueue, 
and mark that task for reschedule if it's running currently. (Doing this 
is not without precedent: we do something similar in wake_up_new_task() 
to implement child-runs-first logic.)

	Ingo

  reply	other threads:[~2006-07-06 13:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06 13:07 New PriorityInheritanceTest - bug in 2.6.17-rt7 confirmed Esben Nielsen
2006-07-06 12:34 ` Thomas Gleixner
2006-07-06 14:11   ` Esben Nielsen
2006-07-06 13:32     ` Ingo Molnar [this message]
2006-07-06 16:20       ` Esben Nielsen
2006-07-07  0:02         ` Esben Nielsen

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=20060706133238.GA13800@elte.hu \
    --to=mingo@elte.hu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nielsen.esben@googlemail.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    /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