Re: -rt more realtime scheduling issues

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Rostedt
Date: Monday, October 8, 2007 - 8:04 pm

On Mon, Oct 08, 2007 at 11:45:23AM -0700, Mike Kravetz wrote:

For i386 I don't think so. Seems that the interrupt handler will set the
current task to "need_resched" and on exit of the interrupt handler, the
schedule should take place. I don't see the race (that doesn't mean
there is one).

For x86_64 though, I don't think that we schedule. All the reschedule
vector does is return with a comment:

/*
 * Reschedule call back. Nothing to do,
 * all the work is done automatically when
 * we return from the interrupt.
 */
asmlinkage void smp_reschedule_interrupt(void)
{
        ack_APIC_irq();
}

I'm thinking that this was the case for i386 a while back, and we fixed
it for RT.

/me does a quick search...

http://lkml.org/lkml/2005/5/13/174

Yep!  This is a bug in x86_64. I'll fix this up tomorrow and send out a
patch.

-- Steve

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
-rt more realtime scheduling issues, Mike Kravetz, (Fri Oct 5, 7:15 pm)
Re: -rt more realtime scheduling issues, Mike Kravetz, (Mon Oct 8, 11:45 am)
[PATCH RT] fix rt-task scheduling issue, Steven Rostedt, (Mon Oct 8, 7:46 pm)
Re: -rt more realtime scheduling issues, Steven Rostedt, (Mon Oct 8, 8:04 pm)
Re: [PATCH RT] fix rt-task scheduling issue, Gregory Haskins, (Mon Oct 8, 9:18 pm)
Re: -rt more realtime scheduling issues, Peter Zijlstra, (Tue Oct 9, 1:16 am)
Re: -rt more realtime scheduling issues, Mike Kravetz, (Tue Oct 9, 11:49 am)
Re: [PATCH RT] fix rt-task scheduling issue, Mike Kravetz, (Tue Oct 9, 11:51 am)
Re: -rt more realtime scheduling issues, Steven Rostedt, (Wed Oct 10, 4:50 am)
Re: -rt more realtime scheduling issues, Mike Kravetz, (Wed Oct 10, 7:37 pm)