Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755769AbYJGPY0 (ORCPT ); Tue, 7 Oct 2008 11:24:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752960AbYJGPYO (ORCPT ); Tue, 7 Oct 2008 11:24:14 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:57394 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751250AbYJGPYO (ORCPT ); Tue, 7 Oct 2008 11:24:14 -0400 Message-ID: <48EB7EEA.4040809@linux-foundation.org> Date: Tue, 07 Oct 2008 10:23:22 -0500 From: Christoph Lameter User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Eric Dumazet CC: Peter Zijlstra , minyard@acm.org, Linux Kernel , netdev@vger.kernel.org, shemminger@vyatta.com, paulmck@linux.vnet.ibm.com Subject: Re: [PATCH 3/3] Convert the UDP hash lock to RCU References: <20081006185026.GA10383@minyard.local> <48EA8197.6080502@cosmosbay.com> <1223367480.26330.7.camel@lappy.programming.kicks-ass.net> <48EB2AE3.3080200@cosmosbay.com> <48EB6EE4.8030703@linux-foundation.org> <48EB7747.9060505@cosmosbay.com> In-Reply-To: <48EB7747.9060505@cosmosbay.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1013 Lines: 36 Eric Dumazet wrote: > > 1) Hum, do you know why "struct file" objects dont use > SLAB_DESTROY_BY_RCU then, > since we noticed a performance regression for several workloads at > RCUification > of file structures ? Because my patches were not accepted that fix the issue. http://lkml.org/lkml/2006/6/16/144 > 2) What prevents an object to be *freed* (and deleted from a hash > chain), then > re-allocated and inserted to another chain (different keys) ? (final > refcount=1) Nothing. > If the lookup detects a key mismatch, how will it continue to the next > item, > since 'next' pointer will have been reused for the new chain insertion... > > Me confused... If there is a mismatch then you have to do another hash lookup. Do an rcu unlock and start over. -- 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/