2011-05-26 13:08:59

by Hillf Danton

[permalink] [raw]
Subject: [PATCH] sched: remove noop in pre_schedule_rt()

Checking task to be RT is removed since only RT task is served here.

Signed-off-by: Hillf Danton <[email protected]>
---

--- tip-git/kernel/sched_rt.c Sun May 22 20:12:01 2011
+++ sched_rt.c Thu May 26 21:11:19 2011
@@ -1516,7 +1516,7 @@ skip:
static void pre_schedule_rt(struct rq *rq, struct task_struct *prev)
{
/* Try to pull RT tasks here if we lower this rq's prio */
- if (unlikely(rt_task(prev)) && rq->rt.highest_prio.curr > prev->prio)
+ if (rq->rt.highest_prio.curr > prev->prio)
pull_rt_task(rq);
}


2011-05-27 09:17:49

by Yong Zhang

[permalink] [raw]
Subject: Re: [PATCH] sched: remove noop in pre_schedule_rt()

On Thu, May 26, 2011 at 9:08 PM, Hillf Danton <[email protected]> wrote:
> Checking task to be RT is removed since only RT task is served here.
>
> Signed-off-by: Hillf Danton <[email protected]>

Actually this patch has been raised for two times:
https://lkml.org/lkml/2010/12/13/622
http://lkml.org/lkml/2010/2/9/139

Thanks,
Yong

> ---
>
> --- tip-git/kernel/sched_rt.c   Sun May 22 20:12:01 2011
> +++ sched_rt.c  Thu May 26 21:11:19 2011
> @@ -1516,7 +1516,7 @@ skip:
>  static void pre_schedule_rt(struct rq *rq, struct task_struct *prev)
>  {
>        /* Try to pull RT tasks here if we lower this rq's prio */
> -       if (unlikely(rt_task(prev)) && rq->rt.highest_prio.curr > prev->prio)
> +       if (rq->rt.highest_prio.curr > prev->prio)
>                pull_rt_task(rq);
>  }
>



--
Only stand for myself

2011-05-27 12:31:08

by Steven Rostedt

[permalink] [raw]
Subject: Re: [PATCH] sched: remove noop in pre_schedule_rt()

On Fri, 2011-05-27 at 17:17 +0800, Yong Zhang wrote:
> On Thu, May 26, 2011 at 9:08 PM, Hillf Danton <[email protected]> wrote:
> > Checking task to be RT is removed since only RT task is served here.
> >
> > Signed-off-by: Hillf Danton <[email protected]>
>
> Actually this patch has been raised for two times:
> https://lkml.org/lkml/2010/12/13/622
> http://lkml.org/lkml/2010/2/9/139
>

Heh, and that's still sitting in my repo on kernel.org. Never been
pulled. I'll ping Ingo about that for the next merge window.

Thanks! I forgot about that pull request.

-- Steve


2011-06-06 08:36:15

by Hillf Danton

[permalink] [raw]
Subject: Re: [PATCH] sched: remove noop in pre_schedule_rt()

On Fri, May 27, 2011 at 5:17 PM, Yong Zhang <[email protected]> wrote:
> On Thu, May 26, 2011 at 9:08 PM, Hillf Danton <[email protected]> wrote:
>> Checking task to be RT is removed since only RT task is served here.
>>
>> Signed-off-by: Hillf Danton <[email protected]>
>
> Actually this patch has been raised for two times:
> https://lkml.org/lkml/2010/12/13/622
> http://lkml.org/lkml/2010/2/9/139
>

Hm... looks curious why it had been delivered more than once.

2011-06-06 11:26:11

by Steven Rostedt

[permalink] [raw]
Subject: Re: [PATCH] sched: remove noop in pre_schedule_rt()

On Mon, 2011-06-06 at 16:35 +0800, Hillf Danton wrote:
> On Fri, May 27, 2011 at 5:17 PM, Yong Zhang <[email protected]> wrote:
> > On Thu, May 26, 2011 at 9:08 PM, Hillf Danton <[email protected]> wrote:
> >> Checking task to be RT is removed since only RT task is served here.
> >>
> >> Signed-off-by: Hillf Danton <[email protected]>
> >
> > Actually this patch has been raised for two times:
> > https://lkml.org/lkml/2010/12/13/622
> > http://lkml.org/lkml/2010/2/9/139
> >
>
> Hm... looks curious why it had been delivered more than once.

What's curious about it?

Yong sent me the patch, and I pulled it into git, and sent a pull
request to Ingo along with some trivial changes of mine. All my pull
requests are posted back to LKML so that we keep an open environment of
what goes into the kernel.

-- Steve


2011-06-06 13:14:58

by Hillf Danton

[permalink] [raw]
Subject: Re: [PATCH] sched: remove noop in pre_schedule_rt()

On Mon, Jun 6, 2011 at 7:26 PM, Steven Rostedt <[email protected]> wrote:
> On Mon, 2011-06-06 at 16:35 +0800, Hillf Danton wrote:
>> On Fri, May 27, 2011 at 5:17 PM, Yong Zhang <[email protected]> wrote:
>> > On Thu, May 26, 2011 at 9:08 PM, Hillf Danton <[email protected]> wrote:
>> >> Checking task to be RT is removed since only RT task is served here.
>> >>
>> >> Signed-off-by: Hillf Danton <[email protected]>
>> >
>> > Actually this patch has been raised for two times:
>> > https://lkml.org/lkml/2010/12/13/622
>> > http://lkml.org/lkml/2010/2/9/139
>> >
>>
>> Hm... looks curious why it had been delivered more than once.
>
> What's curious about it?
>

Hi Steve

The work was repeated not only by Yong, you see, almost
impossible, which shows RT scheduling was and is
attracting minds, and will be as well, right?

thanks
Hillf

2011-06-06 13:25:39

by Steven Rostedt

[permalink] [raw]
Subject: Re: [PATCH] sched: remove noop in pre_schedule_rt()

On Mon, 2011-06-06 at 21:14 +0800, Hillf Danton wrote:

> The work was repeated not only by Yong, you see, almost
> impossible, which shows RT scheduling was and is
> attracting minds, and will be as well, right?

It was an obvious fix, hardly impossible for it to be done twice. This
happens all the time in the kernel. Especially if for some reason a fix
doesn't make it in. This fix didn't make it in simply because it wasn't
one of my normal branches I push to Ingo, and it was at a time that we
all were quite busy and it was simply overlooked.

But yes, the RT scheduler (and the scheduler itself) always attracts
newcomers, and we welcome them. Nothing curious or unusually about it.

-- Steve