From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932606AbbENLi3 (ORCPT ); Thu, 14 May 2015 07:38:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54936 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932313AbbENLi2 (ORCPT ); Thu, 14 May 2015 07:38:28 -0400 Date: Thu, 14 May 2015 13:38:21 +0200 From: Jiri Olsa To: Ingo Molnar Cc: Milos Vyletel , Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , Masami Hiramatsu , Namhyung Kim , Jiri Olsa , He Kuang , Adrian Hunter , "open list:PERFORMANCE EVENT..." Subject: Re: [PATCH 2/2] perf/tools: put new buildid locks to use Message-ID: <20150514113821.GB1313@krava.redhat.com> References: <1431588493-1474-1-git-send-email-milos@redhat.com> <1431588493-1474-3-git-send-email-milos@redhat.com> <20150514104059.GA27771@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150514104059.GA27771@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 14, 2015 at 12:40:59PM +0200, Ingo Molnar wrote: > > * Milos Vyletel wrote: > > > Use new read/write locks when accesing buildid directory on places where > > we may race if multiple instances are run simultaneously. > > Dunno, this will create locking interaction between multiple instances > of perf - hanging each other, etc. > > And it seems unnecessary: the buildid hierarchy is already spread out. > What kind of races might there be? there was just recently one fixed by commit: 0635b0f71424 perf tools: Fix race in build_id_cache__add_s() havent checked the final patch yet, but the idea is to protect us from similar bugs jirka