From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755325AbYGYImZ (ORCPT ); Fri, 25 Jul 2008 04:42:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752566AbYGYImQ (ORCPT ); Fri, 25 Jul 2008 04:42:16 -0400 Received: from gate.crashing.org ([63.228.1.57]:51300 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752208AbYGYImP (ORCPT ); Fri, 25 Jul 2008 04:42:15 -0400 Subject: Re: [PATCH 2/2][RT] powerpc - Make the irq reverse mapping radix tree lockless From: Benjamin Herrenschmidt Reply-To: benh@kernel.crashing.org To: Sebastien Dugue Cc: Peter Zijlstra , Nick Piggin , Linux-rt , linux-ppc , linux-kernel , Paul Mackerras , Michael Ellerman , Tim Chavez , Jean Pierre Dion , Gilles Carry In-Reply-To: <20080725103601.2dbcd7e8@bull.net> References: <20080724122352.3bc76bda@bull.net> <20080724125044.53b604cb@bull.net> <200807242111.35338.nickpiggin@yahoo.com.au> <20080724141839.477de30b@bull.net> <1216972177.7257.351.camel@twins> <1216974440.11188.100.camel@pasglop> <20080725103601.2dbcd7e8@bull.net> Content-Type: text/plain Date: Fri, 25 Jul 2008 18:40:21 +1000 Message-Id: <1216975221.11188.102.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2008-07-25 at 10:36 +0200, Sebastien Dugue wrote: > On Fri, 25 Jul 2008 18:27:20 +1000 Benjamin Herrenschmidt wrote: > > > On Fri, 2008-07-25 at 09:49 +0200, Peter Zijlstra wrote: > > > > > > > > > The only advantage of the concurrent radix tree over this model is that > > > it can potentially do multiple modification operations at the same time. > > > > Yup, we do not need that for the irq revmap... concurrent lookup is all we need. > > > > Shouldn't we care about concurrent insertion and deletion in the tree? I agree > that concern might be a bit artificial but in theory that can happen. Yes, we just need to protect it with a big hammer, like a spinlock, it's not a performance critical code path. Ben.