Received: by 10.192.165.148 with SMTP id m20csp980350imm; Sat, 5 May 2018 02:12:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZppIsCO6ZoRXY5Ib8pfFEHc0heIxGU8Xsu2VFOssEqvlycYOFG7UsHagACosZvznKAScrf+ X-Received: by 10.98.5.129 with SMTP id 123mr17017874pff.38.1525511557086; Sat, 05 May 2018 02:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525511557; cv=none; d=google.com; s=arc-20160816; b=FynIXnRy5hnfzGf5z/IN23pfoJQ8UQlFVCnnDlklvLuFqxCqEPaXB6EDD2OTjHYsgj kvOKxpEEkpBwBJKiilT5HGDj/9u3uVMLXJamZtHAUy8OcBbJ2kMpNGsPHlLElXo3egZr 5IiaSFmZgnKkgwynJnYavzx1i/UCgPX5+8caajQhypUU8DvGtlEVJK1yOTvwucfxefyI 8HIrmXwqHsj/5yTTRj3vw3nLIkfZwqJzj6/961kF/tRheGGuelDSgn7L1g50VX74L6UX riyHbieIAtowXHH0ReI/rSC+/nnEq00fkdLWp6BatVRmsV50K1hRPV/VH5O1IXAA1Wsk u2VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=7dgkUj5nG5chCsYV5DpN/5lH13+sDkGgug6Jhj41hFE=; b=aWr794rlrx/kFOJNotacuYIccT/11rdINVO+A4TK9KuINvc7BY/rGIp/joVNGckhSK Qs5Xjr6gxsVIK5+bIfvgHlvtSvBAoV5W+xM7jaS6oFKETJD5gKseTL+Ro0v58R2a3NSa dKdbKA0NebjpQ1/R8SRxqG6aFgREsz33sy/ISVNO36VMTHN6jFQ8fJabrmcN9IdyVd7V N10PzLDTklBV2aM3cItnbeuiPwvO1l2wrF9tvNadjRLCL2oqLd+VXi5tf+UHOByBkENQ 04YSLYaKvWjYv/uVq6tUNxAXK1jhkDzW3YIDDRQSnp5CBVq3dEAo8FacnQ+l/KAs2CRo nmCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4-v6si2849940pgv.25.2018.05.05.02.12.23; Sat, 05 May 2018 02:12:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751755AbeEEJMP (ORCPT + 99 others); Sat, 5 May 2018 05:12:15 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:35366 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbeEEJMN (ORCPT ); Sat, 5 May 2018 05:12:13 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1fEtEf-0001d8-4U; Sat, 05 May 2018 17:12:09 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1fEtEe-0005yX-UE; Sat, 05 May 2018 17:12:09 +0800 Date: Sat, 5 May 2018 17:12:08 +0800 From: Herbert Xu To: NeilBrown Cc: Thomas Graf , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/8] rhashtable: remove nulls_base and related code. Message-ID: <20180505091208.tnsxi6hdpjn456yz@gondor.apana.org.au> References: <152540595840.18473.11298241115621799037.stgit@noble> <152540605427.18473.12277050439942480863.stgit@noble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152540605427.18473.12277050439942480863.stgit@noble> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 04, 2018 at 01:54:14PM +1000, NeilBrown wrote: > This "feature" is unused, undocumented, and untested and so > doesn't really belong. If a use for the nulls marker > is found, all this code would need to be reviewed to > ensure it works as required. It would be just as easy to > just add the code if/when it is needed instead. > > This patch actually fixes a bug too. The table resizing allows a > table to grow to 2^31 buckets, but the hash is truncated to 27 bits - > any growth beyond 2^27 is wasteful an ineffective. > > This patch result in NULLS_MARKER(0) being used for all chains, > and leave the use of rht_is_a_null() to test for it. > > Signed-off-by: NeilBrown I disagree. This is a fundamental requirement for the use of rhashtable in certain networking systems such as TCP/UDP. So we know that there will be a use for this. As to the bug fix, please separate it out of the patch and resubmit. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt