Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754055Ab3EFOoj (ORCPT ); Mon, 6 May 2013 10:44:39 -0400 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:35129 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752718Ab3EFOoh (ORCPT ); Mon, 6 May 2013 10:44:37 -0400 Date: Mon, 6 May 2013 16:42:48 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Peter Zijlstra , Ingo Molnar , Pavel Machek , Colin Cross , Andrew Morton , lkml , Trond Myklebust , Len Brown , "Rafael J. Wysocki" , Ingo Molnar , "J. Bruce Fields" , "David S. Miller" , Andrew Morton , Mandeep Singh Baines , Paul Walmsley , Al Viro , "Eric W. Biederman" , Oleg Nesterov , Linux NFS Mailing List , Linux PM list , netdev , Tejun Heo , Ben Chan Subject: Re: [PATCH 2/2] lockdep: check that no locks held at freeze time Message-ID: <20130506144248.GB15446@dyad.programming.kicks-ass.net> References: <1367615050-3894-1-git-send-email-ccross@android.com> <1367615050-3894-2-git-send-email-ccross@android.com> <20130504130440.GC13770@amd.pavel.ucw.cz> <20130504225715.GB24276@amd.pavel.ucw.cz> <20130505000528.GA25454@amd.pavel.ucw.cz> <20130505091844.GC22239@gmail.com> <20130506085547.GC13861@dyad.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1366 Lines: 30 On Mon, May 06, 2013 at 07:33:28AM -0700, Linus Torvalds wrote: > On Mon, May 6, 2013 at 1:55 AM, Peter Zijlstra wrote: > > > > Doesn't i386 have all the funny per-cpu stuff too? So the only reason it still > > does the fugly stack based thing is because nobody could be arsed to do the > > work of converting it. > > Umm. That "fugly stack-based" thing is better than the per-cpu crap. > > The percpu stuff implies a memory load. The stack based thing gets > thread_info with pure register accesses. Much better. > > For "current()" the per-cpu thing may be better, but if you actually > need the thread-info (not the case here, but in other places), the > stack masking is superior when it works (ie when you don't have > multi-stack issues due to irq's etc) But you can do both right? Use per-cpu for current and stack frobbery for current_thread_info(). That said, ISTR some risky bits where the stack frobbery went awry due to irq-stacks which is the source for my feelings towards the stack frobbery. That and of course that i386 and x86-64 behave differently for no apparent reason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/