lkml.org 
[lkml]   [2010]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: start_kernel(): bug: interrupts were enabled early
    On Thu, 01 Apr 2010 09:37:51 +1100
    Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:

    > On Wed, 2010-03-31 at 14:57 -0700, H. Peter Anvin wrote:
    > >
    > > The question still remains what the incremental cost is of doing
    > > irqsave/irqrestore.
    >
    > The only other option is to have local_irq_enable() check a global
    > (system_state ?) before enabling. Almost as gross ...
    >

    Add an irq-disable-depth counter to the task_struct, fix all the bugs
    which that exposes..

    But these things are all utterly gross. The bottom line is that
    radix_tree_init() is manifestly unsuited to being called with local
    interrupts disabled. 773e3eb7b81e5ba13b5155dfb3bb75b8ce37f8f9 was just
    a wrong patch.



    \
     
     \ /
      Last update: 2010-04-01 00:53    [W:4.108 / U:0.192 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site