mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* slqb enables interrupts very early
@ 2009-07-25 18:03 Sebastian Andrzej Siewior
  2009-07-27  7:39 ` Pekka Enberg
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2009-07-25 18:03 UTC (permalink / raw)
  To: Pekka Enberg; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-29 11:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-25 18:03 slqb enables interrupts very early Sebastian Andrzej Siewior
2009-07-27  7:39 ` Pekka Enberg
2009-07-29  6:58   ` Nick Piggin
2009-07-29 11:02     ` Sebastian Andrzej Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®