Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751219Ab0DJPMM (ORCPT ); Sat, 10 Apr 2010 11:12:12 -0400 Received: from ns.dcl.info.waseda.ac.jp ([133.9.216.194]:62555 "EHLO ns.dcl.info.waseda.ac.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744Ab0DJPMK (ORCPT ); Sat, 10 Apr 2010 11:12:10 -0400 Message-ID: <4BC09546.5050309@dcl.info.waseda.ac.jp> Date: Sun, 11 Apr 2010 00:12:06 +0900 From: Hitoshi Mitake User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: Frederic Weisbecker CC: LKML , Ingo Molnar , Peter Zijlstra , Paul Mackerras , Arnaldo Carvalho de Melo Subject: Re: Question about lock sequence References: <4BC05677.7070406@dcl.info.waseda.ac.jp> <20100410130723.GA5204@nowhere> In-Reply-To: <20100410130723.GA5204@nowhere> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3307 Lines: 94 On 04/10/10 22:07, Frederic Weisbecker wrote: > 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: >> #-