Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation
From: Herbert Xu
Date: Tue May 29 2018 - 14:15:23 EST
On Tue, May 29, 2018 at 10:55:13AM -0700, Davidlohr Bueso wrote:
> On Wed, 30 May 2018, Herbert Xu wrote:
>
> > On Tue, May 29, 2018 at 09:42:31AM -0700, Davidlohr Bueso wrote:
> > >
> > > For the sake of simplicity, Linus suggested directly using HASH_MIN_SIZE
> > > such that we have a single fallback.
> >
> > Where did he suggest that?
>
> https://lkml.org/lkml/2018/5/24/1265
Well I think we should respect min_size. rhashtable users may
fail at insertion time if the table is too small.
Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt