Re: [linux-audio-dev] Re: [announce] [patch] Voluntary Kernel Preemption Patch

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Re: [announce] [patch] Voluntary Kernel Preemption Patch
From: Andrew Morton (akpm_AT_osdl.org)
Date: Wed Jul 14 2004 - 01:44:48 EEST


Andrea Arcangeli <andrea_AT_suse.de> wrote:
>
> On Tue, Jul 13, 2004 at 03:25:32PM -0700, Andrew Morton wrote:
> > local_irq_disable();
> > <fiddle with per-cpu stuff>
> > function_which_calls_cond_resched();
> > <fiddle with per-cpu stuff>
> > local_irq_enable();
> >
> > then we want might_sleep() to warn about the bug.
>
> might_sleep currently _doesn't_ warn about any bug in the above case I
> quoted.
>
> the kmalloc example is trapped instead.

Yeah, I know. might_sleep() in cond_resched() makes sense.

> >From my part I don't like anybody to call schedule with irq disabled

I'd agree with that. But when I "fixed" it, Ingo unfixed it again and I
didn't have sufficiently strong feelings either way to object.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Jul 14 2004 - 20:58:01 EEST