From: Ingo Molnar <mingo@elte.hu>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RT] possible bug in trace_start_sched_wakeup
Date: Fri, 27 Jan 2006 10:46:56 +0100 [thread overview]
Message-ID: <20060127094656.GA24878@elte.hu> (raw)
In-Reply-To: <1138336718.7814.41.camel@localhost.localdomain>
* Steven Rostedt <rostedt@goodmis.org> wrote:
> spin_lock(&sch.trace_lock);
> - if (sch.task && (sch.task->prio >= p->prio))
> + if (sch.task && ((sch.task->prio <= p->prio) || !rt_task(p)))
> goto out_unlock;
good catch - but i'd not do the !rt_task(p) condition, because e.g. PI
related priority boosting works _without_ changing p->policy. So it is
p->prio that controls. I.e. a simple "sch.task->prio <= p->prio" should
be enough.
Ingo
next prev parent reply other threads:[~2006-01-27 9:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-27 1:57 [RT] possible bug in trace_start_sched_wakeup Steven Rostedt
2006-01-27 4:38 ` Steven Rostedt
2006-01-27 9:46 ` Ingo Molnar [this message]
2006-01-27 12:46 ` Steven Rostedt
2006-01-27 9:54 ` Ingo Molnar
2006-01-27 12:47 ` Steven Rostedt
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=20060127094656.GA24878@elte.hu \
--to=mingo@elte.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/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;
as well as URLs for NNTP newsgroup(s).