From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759283Ab0FPQxE (ORCPT ); Wed, 16 Jun 2010 12:53:04 -0400 Received: from fg-out-1718.google.com ([72.14.220.157]:22625 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756063Ab0FPQxB (ORCPT ); Wed, 16 Jun 2010 12:53:01 -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=Do9lmHIddm91n1E96GeDiR+CbE3Kn2QL5T8qfVbkFPF2ep9Kvf0wmFX3/2ujQ1f68U +iptgGFY3NBTKgUX39Jg2AG/X6DtXnHh8t1lpCz//VX5e/q+QaJX3pbvtithz2I//e8Y mXbtK6UNUnskjFCEXPJl5FL1AjltG62EkQS8M= Date: Wed, 16 Jun 2010 20:52:44 +0400 From: Cyrill Gorcunov To: Peter Zijlstra Cc: paulus , stephane eranian , Robert Richter , Will Deacon , Paul Mundt , Frederic Weisbecker , Lin Ming , Yanmin , Deng-Cheng Zhu , David Miller , linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH 5/8] perf: Reduce perf_disable() usage Message-ID: <20100616165244.GB6751@lenovo> References: <20100616160027.590430763@chello.nl> <20100616160238.431137125@chello.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100616160238.431137125@chello.nl> 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 On Wed, Jun 16, 2010 at 06:00:32PM +0200, Peter Zijlstra wrote: > Since the current perf_disable() usage is only an optimization, remove > it for now. This eases the removal of the weak hw_perf_enable > interface. > > [ Some comments talk about NMI races, but I cannot find any such > things. ] > The race was there and was fixed by commit | commit 34adc8062227f41b04ade0ff3fbd1dbe3002669e | Author: Ingo Molnar | Date: Wed May 20 20:13:28 2009 +0200 then you fixed it further in commit | commit 3fb2b8ddcc6a7aa62af6bd2cb939edfd4c460506 | Author: Peter Zijlstra | Date: Mon Mar 8 13:51:01 2010 +0100 which I understand as we don't need perf_disable here for sure. Just for the record :) -- Cyrill