From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 45F5DDDE00 for ; Fri, 25 Jul 2008 15:14:27 +1000 (EST) Subject: Re: [PATCH 2/2][RT] powerpc - Make the irq reverse mapping radix tree lockless From: Benjamin Herrenschmidt To: Nick Piggin In-Reply-To: <200807242111.35338.nickpiggin@yahoo.com.au> References: <20080724122352.3bc76bda@bull.net> <20080724125044.53b604cb@bull.net> <200807242111.35338.nickpiggin@yahoo.com.au> Content-Type: text/plain Date: Fri, 25 Jul 2008 15:13:39 +1000 Message-Id: <1216962819.11188.82.camel@pasglop> Mime-Version: 1.0 Cc: Tim Chavez , Linux-rt , linux-kernel , Jean Pierre Dion , linux-ppc , Sebastien Dugue , Paul Mackerras , Gilles Carry Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > > Concurrency between readers and writers are handled by the intrinsic > > properties of the concurrent radix tree. Concurrency between the tree > > initialization which is done asynchronously with readers and writers access > > is handled via an atomic variable (revmap_trees_allocated) set when the > > tree has been initialized and checked before any reader or writer access > > just like we used to check for tree.gfp_mask != 0 before. > > Hmm, RCU radix tree is in mainline too for quite a while. I thought > Ben had already converted this code over ages ago... > > Nothing against the -rt patch, but mainline should probably be updated > to use RCU as well? No, I haven't updated that code yet, and yes, we should do it :-) Cheers, Ben.