lkml.org 
[lkml]   [2009]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subjectslqb enables interrupts very early
    I've checkout slab-2.6/linux-next and noticed that the interrupts are
    enabled very early by accident. Please look at the following call stack:

    start_kernel()
    kmem_cache_init()
    kmem_cache_open()
    down_write(&slqb_lock);
    __down_write()
    __down_write_nested()

    Now, __down_write_nested() protects its internal structure the follwing
    way:
    spin_lock_irq(&sem->wait_lock);
    ...
    spin_unlock_irq(&sem->wait_lock);

    so once we return, we return with interrupts on.

    Sebastian


    \
     
     \ /
      Last update: 2009-07-25 20:05    [W:4.123 / U:0.352 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site