From: Herbert Xu Subject: Re: [PATCH net-next v2 2/5] rhashtable: add function to replace an element Date: Wed, 9 Dec 2015 13:38:41 +0800 Message-ID: <20151209053841.GA25851@gondor.apana.org.au> References: <20151203.144558.1956397517705186998.davem@davemloft.net> <20151208093941.GA17795@gondor.apana.org.au> <20151209024323.GA24768@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: David Miller , Linux Kernel Network Developers , Kernel Team To: Tom Herbert Return-path: Received: from helcar.hengli.com.au ([209.40.204.226]:36497 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751415AbbLIFiw (ORCPT ); Wed, 9 Dec 2015 00:38:52 -0500 Content-Disposition: inline In-Reply-To: <20151209024323.GA24768@gondor.apana.org.au> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Dec 09, 2015 at 10:43:23AM +0800, Herbert Xu wrote: > > OK after thinking about it a little bit more I think your approach > is safe and we won't need to play any more games to get this to > work. So I'm fine with this patch. One suggestion though: your inline function doesn't actually inline the fast path. The only thing that's inlined is the loop which is not that critical. As this is probably not performance critical how about just making the whole thing out-of-line? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt