Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751873Ab0DJOua (ORCPT ); Sat, 10 Apr 2010 10:50:30 -0400 Received: from ns.dcl.info.waseda.ac.jp ([133.9.216.194]:62329 "EHLO ns.dcl.info.waseda.ac.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751743Ab0DJOu3 (ORCPT ); Sat, 10 Apr 2010 10:50:29 -0400 Message-ID: <4BC09032.1060004@dcl.info.waseda.ac.jp> Date: Sat, 10 Apr 2010 23:50:26 +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: Peter Zijlstra CC: mingo@elte.hu, linux-kernel@vger.kernel.org, h.mitake@gmail.com, Paul Mackerras , Arnaldo Carvalho de Melo , Frederic Weisbecker Subject: Re: [PATCH] Add "nested" field to event of lock_release References: <1270896100-7935-1-git-send-email-mitake@dcl.info.waseda.ac.jp> <1270907986.4222.2.camel@twins> In-Reply-To: <1270907986.4222.2.camel@twins> Content-Type: text/plain; charset=UTF-8; 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: 1111 Lines: 28 On 04/10/10 22:59, Peter Zijlstra wrote: > On Sat, 2010-04-10 at 19:41 +0900, Hitoshi Mitake wrote: >> State machine of perf lock requires "nested" field of lock_release(), >> so this patch adds it to event. >> >> Signed-off-by: Hitoshi Mitake >> Cc: Peter Zijlstra >> Cc: Paul Mackerras >> Cc: Arnaldo Carvalho de Melo >> Cc: Frederic Weisbecker > > The nested flag only indicates if it could be nested, not if it was > actually nested. So no, this doesn't make any sense at all. > > (in fact, pretty much every lock_release out there has nested=1) > Ah, sorry, I misunderstood. When looked at rwlock_release(), I judged that nested is required, because double or more read_lock() is allowed. Thanks for your correction :) Hitoshi -- 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/