Return-Path: linux-nfs-owner@vger.kernel.org Received: from mail-vc0-f177.google.com ([209.85.220.177]:50888 "EHLO mail-vc0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752120Ab3EFOdb (ORCPT ); Mon, 6 May 2013 10:33:31 -0400 MIME-Version: 1.0 In-Reply-To: <20130506085547.GC13861@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> Date: Mon, 6 May 2013 07:33:28 -0700 Message-ID: Subject: Re: [PATCH 2/2] lockdep: check that no locks held at freeze time From: Linus Torvalds To: Peter Zijlstra Cc: 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: 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) Linus