On Thu, 2006-06-22 at 00:35 +0100, Esben Nielsen wrote: > On Wed, 21 Jun 2006, Thomas Gleixner wrote: > > > On Wed, 2006-06-21 at 22:29 +0100, Esben Nielsen wrote: > >>> Find an version against the code in -mm below. Not too much tested yet. > >> > >> What if setscheduler is called from interrup context as in the hrt timers? > > > > It simply gets stuff going, nothing else. > > > What I mean is that we will then do the full priority inheritance boost > with interrupts off. Only in the case when its called from IRQ context. > Before setscheduler() was O(1), now it is O(<lock depth of what ever lock > the target task might be locked on>). > > This is not a problem for your use of setscheduler() as the task involved > only can be blocked on kernel mutexes, but when the function is used on a > userspace process the lock depth can be deep. Damn, I missed that this is still in the irq off section, when called from do_sched_setscheduler(). Good catch. I fix that. tglx - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Steven Rostedt <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Esben Nielsen <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- References:
- 2.6.17-rt1
- From: Ingo Molnar <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Thomas Gleixner <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Esben Nielsen <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Steven Rostedt <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Esben Nielsen <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Thomas Gleixner <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Esben Nielsen <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Steven Rostedt <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Esben Nielsen <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Esben Nielsen <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Thomas Gleixner <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Esben Nielsen <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Thomas Gleixner <[email protected]>
- Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- From: Esben Nielsen <[email protected]>
- 2.6.17-rt1
- Prev by Date: Re: bitmap loading related reiserfs changes in 2.6.17-mm1 are broken
- Next by Date: Re: [PATCH] cardbus: revert IO window limit
- Previous by thread: Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- Next by thread: Re: Why can't I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
- Index(es):