[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100331154955.54176e5e.akpm@linux-foundation.org>
Date: Wed, 31 Mar 2010 15:49:55 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Benjamin Herrenschmidt <benh@...nel.crashing.org>
Cc: "H. Peter Anvin" <hpa@...or.com>,
Christoph Lameter <cl@...ux-foundation.org>,
Matthew Wilcox <matthew@....cx>,
Yinghai Lu <yinghai@...nel.org>, Rabin Vincent <rabin@....in>,
lkml <linux-kernel@...r.kernel.org>, penberg@...helsinki.fi,
linux-arch@...r.kernel.org
Subject: Re: start_kernel(): bug: interrupts were enabled early
On Thu, 01 Apr 2010 09:37:51 +1100
Benjamin Herrenschmidt <benh@...nel.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists