Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751265Ab0DJNHf (ORCPT ); Sat, 10 Apr 2010 09:07:35 -0400 Received: from mail-bw0-f209.google.com ([209.85.218.209]:55676 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750958Ab0DJNHd (ORCPT ); Sat, 10 Apr 2010 09:07:33 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=JnoPoL9CiCOppY+Pj0XtYNJ8eGwTgtGmmE99AxTU8+5LJp2XUgxquVgP0WeObwP6bC ilj1mvSi6UrwOMmJfzV3fzATLaa7neldh2bMDeOCPycXfjq48oRFEfvRV+S78emfjk8y 6Kero5uAZ0+PchAw0P7bCve/HgoBAi5AHB9RI= Date: Sat, 10 Apr 2010 15:07:26 +0200 From: Frederic Weisbecker To: Hitoshi Mitake Cc: LKML , Ingo Molnar , Peter Zijlstra , Paul Mackerras , Arnaldo Carvalho de Melo Subject: Re: Question about lock sequence Message-ID: <20100410130723.GA5204@nowhere> References: <4BC05677.7070406@dcl.info.waseda.ac.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BC05677.7070406@dcl.info.waseda.ac.jp> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2716 Lines: 73 On Sat, Apr 10, 2010 at 07:44:07PM +0900, Hitoshi Mitake wrote: > > Hi, > > I found that my understand about lockdep is completely wrong :( , > so state machine of perf lock should be fixed before optimization. > > And I found that behaviour related to some of spin locks are strange. > The concrete example is lock sequences targeting dcache_lock (defined in > head of fs/dcache.c). > > I made a little (and not essential) change to perf lock, and observe > lock sequence targeting it. > Changed perf lock shows sequence of locks in time order, > and I grepped the output of it with dcache, like this: > > % sudo ./perf lock report | grep dcache > > The head part of result is this: > # -