Thread (17 messages) 17 messages, 5 authors, 2017-02-14

Re: [PATCH 3/3] rhashtable: Add nested tables

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2017-02-07 13:29:37

On Tue, Feb 07, 2017 at 02:17:28PM +0100, Florian Westphal wrote:
Ok, but why?
Because people expect the hash table insertion to succeed, even
on softirq paths where you cannot vmalloc.
It seems to add a whole lot of complexity...

What users can't handle the insert failure case until resize
has completed?
Users that need to insert on softirq that cannot throttle the
rate.
Would relaxing the max chain length (until rehash is done) be an
alternative?
Considering that this is intended for users that cannot throttle
the rate of insertion, I think we'd be much better off just failing
them than sticking them on what will essentially be a linked list.

As people don't like insertion failure, I think this level of
complexity is justified.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help