From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755295Ab1ATLXe (ORCPT ); Thu, 20 Jan 2011 06:23:34 -0500 Received: from casper.infradead.org ([85.118.1.10]:57891 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752916Ab1ATLX3 convert rfc822-to-8bit (ORCPT ); Thu, 20 Jan 2011 06:23:29 -0500 Subject: Re: [PATCH 1/2] lockdep: move early boot local IRQ enable/disable status to init/main.c From: Peter Zijlstra To: Tejun Heo Cc: Ingo Molnar , Linus Torvalds , Linux Kernel Mailing List , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , Pekka Enberg In-Reply-To: <20110120111149.GD6036@htj.dyndns.org> References: <20110119120200.GA1057@elte.hu> <20110120110635.GB6036@htj.dyndns.org> <20110120111149.GD6036@htj.dyndns.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Thu, 20 Jan 2011 12:23:51 +0100 Message-ID: <1295522631.28776.155.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2011-01-20 at 12:11 +0100, Tejun Heo wrote: > Hello, guys. > > These two patches remove both warnings. The first warning was > completely spurious. The second lockdep one was triggered by > on_each_cpu() enabling local IRQ too early. > > I don't think percpu allocator itself malfunctioned. There was no > allocation failure. It whines when percpu allocation fails but didn't > in the log. Other than calling vfree() early triggering the above > condition, it worked okay. > > So, it's either the early enabling of local IRQ by on_each_cpu() > breaking something in the IRQ subsystem or something different. Ingo, > can you please see whether these two patches cure the panic too? Why not use something like: system_state != SYSTEM_RUNNING ?