Re: start_kernel(): bug: interrupts were enabled early

Matthew Wilcox
2010-03-31T21:01:49Z

On Wed, Mar 31, 2010 at 01:47:23PM -0700, Yinghai Lu wrote:
> >> > This appears to be caused by:
> >> >
> >> > start_kernel -> radix_tree_init -> kmem_cache_create (slub) ->
> >> > down_write -> __down_write (lib/rwsem-spinlock.c) -> spin_unlock_irq
> >> >
> > That's going to be hard to fix.
> >
> spin_unlock_irq from arm is different from other archs?

Not all arches use lib/rwsem-spinlock.c. In particular, x86 doesn't
when X86_XADD is set.

--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."