Re: lockdep: access percpu variable too early

From: Ming Lei
Date: Wed Mar 06 2013 - 08:37:40 EST


On Wed, Mar 6, 2013 at 6:34 PM, Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> * Ming Lei <ming.lei@xxxxxxxxxxxxx> wrote:
>
>> On Wed, Mar 6, 2013 at 6:20 PM, Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>> >
>> > What's the practical effect of it? Do we copy the value from the boot CPU and
>> > thus the secondary CPUs start with slightly increased stats?
>>
>> Yes, it is the major effect.
>>
>> Also the arch dependent __my_cpu_offset might be initialized a bit late.
>
> I suspect we could try to fix it - post-initializing it after percpu setup sounds
> like a viable option, if it does not get too ugly.

OK, I may post a patch for review, but the arch dependent __my_cpu_offset
still need to be initialized very early.

Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/