Re: [PATCH v3 3/3] sched, x86: Check that we're on the right stack in schedule and __might_sleep
From: Andy Lutomirski
Date: Wed Nov 19 2014 - 20:12:22 EST
On Wed, Nov 19, 2014 at 5:09 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Wed, Nov 19, 2014 at 4:46 PM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
>>
>> I'm very hesitant to use irq_enter for this, though. I think we want
>> just the irq_count part.
>
> Oh, I agree. I mentioned irq_enter/exit() just as the place the
> preempt count increment normally happens. I have nothing against doing
> it manually for these things that really aren't normal interrupts.
>
It may need to be considerably more complicated to keep RCU happy,
though. In fact, I think that this code is already wrong.
I'll write something and cc Paul to get some feedback.
--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/